Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with nnUNet use : "from nnunetv2.inference.predict_from_raw_data import predict_from_raw_data" #7377

Closed
P20L0 opened this issue Jan 8, 2024 · 1 comment

Comments

@P20L0
Copy link

P20L0 commented Jan 8, 2024

It seems that there is an issue in the runner since predict_from_raw_data is not defined properly.
I've tried several things, importing the predictor class but it doesn't work...

I get this message

File "/home/iadi.lan/psou/Environnements/MONAI/monai/apps/nnunet/nnunetv2_runner.py", line 827, in predict
from nnunetv2.inference.predict_from_raw_data import predict_from_raw_data
ImportError: cannot import name 'predict_from_raw_data' from 'nnunetv2.inference.predict_from_raw_data' (/home/iadi.lan/psou/Environnements/nnUNet/nnunetv2/inference/predict_from_raw_data.py)

Any ideas of what's happening ?
Thank you very much :).

@KumoLiu
Copy link
Contributor

KumoLiu commented Jan 9, 2024

Hi @P20L0, it's been a known issue since the update from nnunet. Would suggest using v2.1 as a workaround.
#7013
Thanks!

@Project-MONAI Project-MONAI locked and limited conversation to collaborators Jan 9, 2024
@KumoLiu KumoLiu converted this issue into discussion #7378 Jan 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants