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

IndexError while trying to predict with my trained model #2666

Open
ReuveniDor opened this issue Jan 16, 2025 · 0 comments
Open

IndexError while trying to predict with my trained model #2666

ReuveniDor opened this issue Jan 16, 2025 · 0 comments
Assignees

Comments

@ReuveniDor
Copy link

Hi, I am encountering a problem while trying to predict my dataset.
It happens even when I try to predict one file, even if its in a separate script and not with the predit command.
Also when I am trying to make predictions on the same data I trained my model on.

The prediction line:

nnUNetv2_predict -d 100 -i input -o output -f 5 -c 3d_fullres -p nnUNetResEncUNetLPlans --disable_progress_bar

This is the source in my case (the line's number might not be the same as the original file):

default_resampling.py", line 208, in resample_data_or_seg
    reshaped_here[slice_id] = resize_fn(
IndexError: index 251 is out of bounds for axis 0 with size 251

I would appreciate your help,
Dor Reuveni

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

2 participants