Error with RandCropByPosNegId: The size of tensor a (19400862) must match the size of tensor b (25181628) at non-singleton dimension 0. #7770
ArpanGyawali
started this conversation in
General
Replies: 2 comments 2 replies
-
Hi @ArpanGyawali, please ensure your image and label are in the same shape. You can try to use Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
2 replies
-
@KumoLiu |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have read other issues related to this but couldnt solve it.
My pre transforms:
I get the error:
When i used CropForegroundd transform before RandCropByPosNegLabeld, everything worked fine. I removed it because my task is skull stripping and the region of interest is larger and covers significant part of the image.
Now when i remove it, why do i get this error?
Beta Was this translation helpful? Give feedback.
All reactions