-
RuntimeError: stack expects each tensor to be equal size, but got [1, 128, 224, 224] at entry 0 and [1, 224, 224, 128] at entry 3
the errors:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @lg2578 , Thanks for your interest here. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @lg2578, Since you have used Due to the mismatch of dimensions between the images, the error has triggered. Using the |
Beta Was this translation helpful? Give feedback.
Hi @lg2578 ,
Thanks for your interest here.
I think that because you executed random spatial transform
RandRotate90d(keys=["img", "seg"], prob=0.5, spatial_axes=[0, 2])
.It's
prob=0.5
, so some images are rotated, some not.Thanks.