# 3d Slicer - MonaiLabel - custom labels

**URL:** <https://discourse.slicer.org/t/3d-slicer-monailabel-custom-labels/35860>\
**Category:** Support\
**Tags:** segmentation, segmentations, segment-editor, monailabel\
**Created:** [May 1, 2024, 9:39pm UTC](https://discourse.slicer.org/t/3d-slicer-monailabel-custom-labels/35860 "2024-05-01T21:39:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andras\_Gomori](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andras_gomori/32/70262_2.png) [@Andras\_Gomori](https://discourse.slicer.org/u/Andras_Gomori)\
**Post date:** [May 1, 2024, 9:39pm UTC](https://discourse.slicer.org/t/3d-slicer-monailabel-custom-labels/35860/1 "2024-05-01T21:39:11Z")

</div>

Hi!

Windows 10, Slicer 3D 5.6.2, MonaiLabel 0.8.1.  
I have a functioning Nvidia card with cuda support.  
I ran the ‘hello world’ spleen segmentation.

I converted my dicom files to nifti, it works until I use custom labels in the monailabel config. If I use only 1 of my custom labels everything seems fine. After adding at least 1 more custom label, things are getting messy.  
I’m unsure what I’m doing wrong.

Somewhere I read try to change the application (radiology) name. May it be the solution?

(I tried to use the --conf use\_pretrained\_model false, or changing it in the conf, the error is consistent)

Log:  
Traceback (most recent call last):  
File “G:/prog\_app/Slicer 5.6.2/slicer.org/Extensions-32448/MONAILabel/lib/Slicer-5.6/qt-scripted-modules/MONAILabel.py”, line 1545, in onClickSegmentation  
result\_file, params = self.logic.infer(model, image\_file, params, session\_id=self.getSessionId())  
File “G:/prog\_app/Slicer 5.6.2/slicer.org/Extensions-32448/MONAILabel/lib/Slicer-5.6/qt-scripted-modules/MONAILabel.py”, line 2321, in infer  
result\_file, params = client.infer(model, image\_in, params, label\_in, file, session\_id)  
File “G:\prog\_app\Slicer 5.6.2\slicer.org\Extensions-32448\MONAILabel\lib\Slicer-5.6\qt-scripted-modules\MONAILabelLib\client.py”, line 344, in infer  
raise MONAILabelClientException(  
MONAILabelLib.client.MONAILabelClientException: (1, ‘Status: 500; Response: Internal Server Error’)

---

<div class="post-metadata">

**Author:** ![Andras\_Gomori](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andras_gomori/32/70262_2.png) [@Andras\_Gomori](https://discourse.slicer.org/u/Andras_Gomori)\
**Post date:** [May 2, 2024, 6:37pm UTC](https://discourse.slicer.org/t/3d-slicer-monailabel-custom-labels/35860/2 "2024-05-02T18:37:14Z")

</div>

The name change did not solve the problem. I’ve tried to manipulate the pip installs but had no success.

---

<div class="post-metadata">

**Author:** ![Andras\_Gomori](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andras_gomori/32/70262_2.png) [@Andras\_Gomori](https://discourse.slicer.org/u/Andras_Gomori)\
**Post date:** [May 6, 2024, 7:57pm UTC](https://discourse.slicer.org/t/3d-slicer-monailabel-custom-labels/35860/3 "2024-05-06T19:57:47Z")

</div>

The error was on my side.  
I found in another forum:  
" remove all files in the `model` folder"

this solved the problem. It has to be done if the training is from absolute zero (“scratch”)
