Cannot run V-Net on medical decathlon data #7985
Replies: 7 comments
-
Hi @linnabraham, looks like a shape mismatch issue. Did you try to check your input data shape before sending to the model? |
Beta Was this translation helpful? Give feedback.
-
@KumoLiu I did now and it seems like the decathlon data shape is not compatible with the V-Net. I was not expecting that since I had earlier used the same data with tensorflow implementation of V-Net (https://github.com/NVIDIA/DeepLearningExamples/tree/master/TensorFlow/Segmentation/VNet). But I found an issue with the V-Net implementation. It seems like the |
Beta Was this translation helpful? Give feedback.
-
The MONAI/monai/networks/nets/vnet.py Line 211 in 64ea76d In Tensorflow, they also set out_channels as 16: https://github.com/NVIDIA/DeepLearningExamples/blob/729963dd47e7c8bd462ad10bfac7a7b0b604e6dd/TensorFlow/Segmentation/VNet/model/vnet.py#L34 |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing out the tensorflow code. But I am still confused. My input has shape (64, 128, 128). Right now I edited the source code to remove 16 from being hard coded, but no matter what I give as out_channel, 1, 16, 64, 128, I am getting a shape mismatch error. What do I do? |
Beta Was this translation helpful? Give feedback.
-
If your shape is (64, 128, 128), then your |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing that out. I set it to 2. I could not use 16 as out channels, so I tried 64 itself. Now I get this error
|
Beta Was this translation helpful? Give feedback.
-
Hi @linnabraham, can you try removing
because it looks like |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
PyTorch complains of size mismatch when using V-Net with medical decathlon data.
To Reproduce
Expected behavior
Training happens
Screenshots
Complete Traceback
Environment
Ensuring you use the relevant python executable, please paste the output of:
Beta Was this translation helpful? Give feedback.
All reactions