-
Notifications
You must be signed in to change notification settings - Fork 0
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
Runtime error when segmenting image #5
Comments
Hm I expect the problem comes from the fact that the input image is not formatted like the model expects. This was something I was worried about because we should tell the user why this is failing.
For the unmyelinated TEM model, when we look at the
So for this one, we expect grayscale single channel images. However, if we look at the other model available, we have this:
This is used for the image preprocessing. |
Ahh that makes sense ! The image I was trying it with was just our default SEM model test image |
Ah yes this image indeed has 3 channels. I think this should be caught by the script and send a warning to the user instead of crashing with this unhelpful error message. |
Maybe this is an example of why #1 might be useful, because we already have the tools to do this conversion (RGB -> Gray) there |
Yeah and the nnUNet pipeline requires creating a temp folder with different filenames anyway so we can for sure convert the color profile at this step. |
Here's the command & output:
MacBookPro 2021, CPU (no CUDA), Python 3.9 pip env:
The text was updated successfully, but these errors were encountered: