-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reworking nnunetv2 predictor #7069
base: dev
Are you sure you want to change the base?
Conversation
Signed-off-by: Jupilogy <[email protected]>
Signed-off-by: Jupilogy <[email protected]>
BTW I ran the test that was causing the issue
I didn't kill it but I dunno what the outcome was expected to be. Either way the import error is not there any more :D Let me know if you want any more logs to be sure about the performance or whatever. Last time I tried to run the full coverage tests, though, my PC crashed so I'd rather not try that again (sorry)!! |
ff4f3db
to
ffcf5e3
Compare
Also I've now signed both the commits. So I'm not sure why it's not passing the DCO. |
/build |
monai/apps/nnunet/nnunetv2_runner.py
Outdated
use_gaussian=use_gaussian, | ||
use_mirroring=use_mirroring, | ||
perform_everything_on_gpu=perform_everything_on_gpu, | ||
verbose=verbose, | ||
) | ||
predictor.initialise_from_trained_model_folder( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for lookint into the issue, this currently generates an error AttributeError: 'nnUNetPredictor' object has no attribute 'initialise_from_trained_model_folder'. Did you mean: 'initialize_from_trained_model_folder'?
I think you can test within a docker container (docker run --ipc=host --net=host --gpus all -ti --rm projectmonai/monai
):
cd /tmp
git clone --depth 1 --branch 7013nnunetv2-predict --single-branch https://github.com/JupiLogy/MONAI.git
python -m pip install git+https://github.com/julien-blanchon/hiddenlayer.git
python -m pip install nnunetv2
cd MONAI/
python -m tests.test_integration_nnunetv2_runner
I'm not sure how to make this PR a draft again... But anyway, Note to self sort of, here's the latest error message.
|
Seems like it's creating a |
Signed-off-by: jupilogy <[email protected]>
I've been delving into the nnunetv2 code all day and it seems to me like it's not actually putting any logs or models or anything into the |
If it is a problem with nnunet I'll open an issue there |
I don't currently have time to look into those API changes... perhaps @dongyang0122 can help |
Update, I got access to a machine with Docker, but the GPUs are too old to work with the monai docker. :( Edit to update more: I got it working on a Docker, and it doesn't have the same folder issue there. Note to self: Now it's just not making the "validation" folder for some reason. |
Fixes #7013 .
Description
nnunetv2 version 2.2 introduced breaking changes, so now
predict_from_raw_data
is no longer a function. Following the changes between their v2.1 and v2.2 I tried to update the nnunetv2 runner.Haven't documented the changes, not sure if it's required?
Types of changes
python -m tests.test_integration_nnunetv2_runner
.