Skip to content

HD-BET import error on clean install #14

Description

@jlukic

Following the quickstart notebook, src/preprocessing/mri_preprocess_3d_simple.py fails on line 7:

from HD_BET.hd_bet import hd_bet
ModuleNotFoundError: No module named 'HD_BET.hd_bet'

The available pip versions of HD-BET (1.1 and 2.x) use different import paths:

  • v1.1: from HD_BET.run import run_hd_bet
  • v2.x: from HD_BET.hd_bet_prediction import get_hdbet_predictor, hdbet_predict

Could you clarify which version or install method the preprocessing script expects? Happy to submit a PR once I know the intended target.

Environment:

  • Python 3.12
  • Installed dependencies via pip per README

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions