Open RewaaHummedi opened 1 month ago
Hey @RewaaHummedi,
when using the nnUNetPredictor you should load the data in the same way as it was done during training. If you are using SimpleITKIO take a look here:
https://github.com/MIC-DKFZ/nnUNet/blob/master/nnunetv2/imageio/simpleitk_reader_writer.py#L30
at first glance, the following line is missing from your script:
npy_image = npy_image[None]
If this is not working please ensure your data has the same format as your train data and share your dataset.json and the plans file.
Best, Lars
Description: I encountered an issue while attempting to perform prediction using a single Numpy array with nnUNetPredictor. Here are the details of the problem along with the steps to reproduce it:
Code Snippet:![image](https://github.com/user-attachments/assets/16a78a2a-8c62-4873-8456-a33bddb430c6)
Output:
![image](https://github.com/user-attachments/assets/550f871c-b06a-405f-b232-1421c7ff7209)
Error:
![image](https://github.com/user-attachments/assets/a43328a4-f58e-4a4f-be37-e5c6d3226751)
Issue Details:
Request for Assistance:
Thank you for your guidance on resolving this issue.