You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I tried to pass the X parameter to data.py, to change the name of the plane from Z to X, it showed me the following error. what changes should I make to the code to fix this error??
Traceback (most recent call last):
File "data.py", line 131, in
create_train_data(current_fold, plane)
File "data.py", line 92, in create_train_data
imgs[i] = pad_2d(cropped_im, plane, 0, XMAX, YMAX, ZMAX)
File "/content/Pancreas-segmentation/utils.py", line 42, in pad_2d
npad = ((0, ymax - image.shape[1]), (0, zmax - image.shape[2]))
IndexError: tuple index out of range
The text was updated successfully, but these errors were encountered:
when I tried to pass the X parameter to data.py, to change the name of the plane from Z to X, it showed me the following error. what changes should I make to the code to fix this error??
Traceback (most recent call last):
File "data.py", line 131, in
create_train_data(current_fold, plane)
File "data.py", line 92, in create_train_data
imgs[i] = pad_2d(cropped_im, plane, 0, XMAX, YMAX, ZMAX)
File "/content/Pancreas-segmentation/utils.py", line 42, in pad_2d
npad = ((0, ymax - image.shape[1]), (0, zmax - image.shape[2]))
IndexError: tuple index out of range
The text was updated successfully, but these errors were encountered: