Open hadign20 opened 10 months ago
Is it possible that the image in question has a different shape than the other ones, i.e. more channels?
Why don't make nnUNetv2_predict to convert any input image to grayscale without alpha? Or at least throw a error message more meaningful rather than this blant IndexError: list index out of range
?
I do this with all my codes, using pillow is very simple.
Sorry, I should do a PR but I don't have the time right now.
I am having a strange error when I try to run the inference:
nnUNetv2_predict -i "/NNunet/Data/nnUNet_raw/Dataset500_CRLM/imagesTs/" -o "/Output/Dataset500_CRLM/3dfullers/" -d 500 -c 3d_fullres -p nnUNetPlans
I have 503 test images. Last week I ran this code and it went fine for 221 images with no problem. But suddenly, without me changing anything, it shows two errors even for one image.
This error shows up at the beginning of the process:
And this error shows at the end:
I tried on two different systems (one Linux, one Windows) but I get the same error.
Please let me know how to fix this.