Replies: 1 comment 8 replies
-
Hi @witness97 , Thanks for your interest here. Thanks. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi MONAI team and thanks for providing such amazing package. I try to run 2D_segmentation Unet training code on my own dataset, but it got the error
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/monai/transforms/transform.py", line 48, in apply_transform
return transform(data)
File "/usr/local/lib/python3.7/dist-packages/monai/transforms/croppad/array.py", line 327, in call
self.randomize(img.shape[1:])
File "/usr/local/lib/python3.7/dist-packages/monai/transforms/croppad/array.py", line 315, in randomize
self._size = fall_back_tuple(self.roi_size, img_size)
File "/usr/local/lib/python3.7/dist-packages/monai/utils/misc.py", line 174, in fall_back_tuple
user = ensure_tuple_rep(user_provided, ndim)
File "/usr/local/lib/python3.7/dist-packages/monai/utils/misc.py", line 131, in ensure_tuple_rep
raise ValueError(f"Sequence must have length {dim}, got {len(tup)}.")
ValueError: Sequence must have length 3, got 2.
The shape of image in my dataset is (512, 512, 3), I just wonder why this error would happen and how to turn my data to fit the code. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions