-
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
SwinUnet deprecation error and when correct TypeError over img_size #8300
Comments
Hi @joaomamede, may I ask how did you install the monai? |
Good question I think I did pip install. It was a while back. If I remove the deprecation type error in the code the swin runs. |
Hi @joaomamede, yes. I know it's a bit of a mismatch, because we want to tell the user something through the deprecate message, but because the |
I did pip install monai-weekly[all] with a fresh anaconda environment with python 3.9.21. if I remove the deprecation type error in the code it runs, but we need to add a value to img_size (I believe it does nothing) because I added (512,512,64) as option in images that were 256,256,64 and it ran fine. |
Describe the bug
Img_size argument is required, but not allowed at the same time
To Reproduce
print_config()
But
Expected behavior
Img_size is no longer needed but we have type error when not present and DeprecationError when present.
Environment
anaconda linux ubuntu 24.04
The text was updated successfully, but these errors were encountered: