Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help #6

Open
ShathaMelhem opened this issue Apr 8, 2022 · 0 comments
Open

help #6

ShathaMelhem opened this issue Apr 8, 2022 · 0 comments

Comments

@ShathaMelhem
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant