TypeError: Caught TypeError in DataLoader worker process 0.
wxr521314 opened this issue · 1 comments
wxr521314 commented
lee-zq commented
In line 33 of the file ./utils/common.py: “ if random_x_max < 0 or random_y_max < 0 or random_z_max < 0: return None”.
That means when crop size is larger than the image size, the func will return None. One unpack to two variable will cause TypeError: cannot unpack non-iterable NoneType object
Please check your data's shape, ensure that the image is read correctly.
(I will modify the code to throw the suitable error message )