Failed to run inference in MONAI Label Server #515
-
I am able to grab the next sample from my studies folder however this error pops up as soon as the image is grabbed:
File "C:/Users/Ariela/AppData/Local/NA-MIC/Slicer 4.13.0-2021-10-03/NA-MIC/Extensions-30282/MONAILabel/lib/Slicer-4.13/qt-scripted-modules/MONAILabel.py", line 1832, in infer
File "C:\Users\Ariela\AppData\Local\NA-MIC\Slicer 4.13.0-2021-10-03\NA-MIC\Extensions-30282\MONAILabel\lib\Slicer-4.13\qt-scripted-modules\MONAILabelLib\client.py", line 111, in infer
MONAILabelLib.client.MONAILabelException: (2, "Status: 500; Response: b'Internal Server Error'") Once I dismiss the error, I am still able to segment the image and submit it to the model. I can see that the model does in fact update and that the training bar progresses. I am unsure what this error means though and am wondering if it will cause errors down the line. Please let me know what you think! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 18 replies
-
Please check the logs... either logs directory in your apps folder.. app.log in your app/logs folder After fetching the sample, slicer tries to run auto-segmentation (depending on the model/availability) and looks like it didn't get any label from server.... so you can check what happened at the server in its' logs |
Beta Was this translation helpful? Give feedback.
-
Can you attach the log file? |
Beta Was this translation helpful? Give feedback.
-
Do you have GPU with CUDA enabled? |
Beta Was this translation helpful? Give feedback.
-
@diazandr3s can you help.. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to close this discussion! @diazandr3s was able to help me resolve the issues! The primary issue had to do with my manual segmentations. I used the paint tool on one of the older versions of MONAI Label to segment my dataset (pregnant guinea pigs), however, I segmented each 2D slice independently (this is how manual segmentations are done in my lab) and then submitted it to the model. Andres showed me how to conduct the segmentations using the 'grow from seeds' tool in 3D slicer and suggested that I update to the latest version of MONAI and slicer. Additionally, Andres showed me that the "Failed to run inference on MONAI Label server" error was popping up because I had "Auto-run pre-trained model" checked off under slicer's application settings (Edit -> Application Settings -> MONAI Label) while I am not using a pre-trained model. Thank you to everyone who responded and helped me with these issues! |
Beta Was this translation helpful? Give feedback.
Just wanted to close this discussion! @diazandr3s was able to help me resolve the issues! The primary issue had to do with my manual segmentations. I used the paint tool on one of the older versions of MONAI Label to segment my dataset (pregnant guinea pigs), however, I segmented each 2D slice independently (this is how manual segmentations are done in my lab) and then submitted it to the model. Andres showed me how to conduct the segmentations using the 'grow from seeds' tool in 3D slicer and suggested that I update to the latest version of MONAI and slicer. Additionally, Andres showed me that the "Failed to run inference on MONAI Label server" error was popping up because I had "Auto-ru…