UNETR error because of input image size #6317
-
Thanks for the great job. I am using UNETR for a 3D segmentation task. When set img_size=(64,64,64), an error ocurs and I have no idea: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This log message: |
Beta Was this translation helpful? Give feedback.
This log message:
RuntimeError: The size of tensor a (64) must match the size of tensor b (576)
, means your input data are somehow mismatched the network's config, not sure where the 576 from, but your could check whether the network configs are correctly changed.If you are not sure, you could start with this tutorial:
https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/unetr_btcv_segmentation_3d.ipynb