Hi,
I successfully trained a model using MonaiLabel for a simple skull segmentation. However, when I tested running the model on a volume, it reported Status: 500; Response: Internal Server Error
Traceback (most recent call last):
File "C:/ProgramData/slicer.org/Slicer 5.8.0/slicer.org/Extensions-33216/MONAILabel/lib/Slicer-5.8/qt-scripted-modules/MONAILabel.py", line 1565, in onClickSegmentation
result_file, params = self.logic.infer(model, image_file, params, session_id=self.getSessionId())
File "C:/ProgramData/slicer.org/Slicer 5.8.0/slicer.org/Extensions-33216/MONAILabel/lib/Slicer-5.8/qt-scripted-modules/MONAILabel.py", line 2397, in infer
result_file, params = client.infer(model, image_in, params, label_in, file, session_id)
File "C:\ProgramData\slicer.org\Slicer 5.8.0\slicer.org\Extensions-33216\MONAILabel\lib\Slicer-5.8\qt-scripted-modules\MONAILabelLib\client.py", line 344, in infer
raise MONAILabelClientException(
MONAILabelLib.client.MONAILabelClientException: (1, 'Status: 500; Response: Internal Server Error')
I used the deepedit model. The only modification I did was simply changing the labels in deepedit.py to
self.labels = {
"skull": 1,
"background": 0,
}
I also saved the model script as deepedit_skull.py.
I could train and run the default deepedit model to segment a new abdominal volume with no problem.
Here is the full log of the Slicer session: Slicer_5.8.0_33216_20250415_124050_526.log - Google Drive