Skip to content
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

Import MisalignTransform fails with current version #1

Closed
ndebs opened this issue Feb 16, 2024 · 4 comments
Closed

Import MisalignTransform fails with current version #1

ndebs opened this issue Feb 16, 2024 · 4 comments

Comments

@ndebs
Copy link

ndebs commented Feb 16, 2024

Hi,

I followed the instructions for installing misalignement depedencies with:

https://github.com/MIC-DKFZ/misalignment_DA.git
cd misalignment-DA
pip install -e .

but it failed when I launch nnUNet with nnUNetTrainer_Misalign trainer:
nnUNetv2_train 001 3d_fullres 0 -tr nnUNetTrainer_Misalign --npz

MisalignTransform could not be imported from /batchgenerators/transforms/spatial_transforms.py. Actually, spatial_transforms.py was exactly the same as the one on nnUNet_v2 master branch, and did not contain 'MisalignTransform' class.

I tried then to force the installation of batchgenerators with a recent version (v 0.23.2 should contain Misalignment data augmentation), but it didn't worked either.

Best regards,

Noëlie

@Kobalt93
Copy link
Member

Hi Noëlie,
strange, I will doublecheck it, could you please try this command?: pip install --upgrade --force-reinstall git+https://github.com/MIC-DKFZ/batchgenerators.git
Let me know it it doesnt work.

@ndebs
Copy link
Author

ndebs commented Feb 19, 2024

Hi,
Thanks for your answer! by forcing batchgenerator install it worked !

@Kobalt93
Copy link
Member

Happy for hearing that :))

@alexandreroutier
Copy link

Hi @Kobalt93,

I had the same issue than Noëlie and I was wondering if MIC-DKFZ/batchgenerators#122 would solve this issue?

Best,
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants