# MONAI Label Server error

**URL:** <https://discourse.slicer.org/t/monai-label-server-error/26300>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [November 18, 2022, 9:34am UTC](https://discourse.slicer.org/t/monai-label-server-error/26300 "2022-11-18T09:34:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [November 18, 2022, 9:34am UTC](https://discourse.slicer.org/t/monai-label-server-error/26300/1 "2022-11-18T09:34:13Z")

</div>

Dear all members in 3D-Slicer

I’m working auto segmentation with brats\_mri\_segmentation\_v0.2.1 in 3D-Slicer.

When I conduct server start, I used command that is ‘monailabel start\_server --app apps/monaibundle --studies datasets/Task01\_BrainTumour/imagesTr --conf models brats\_mri\_segmentation\_v0.2.1’.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/1/a1252afd06fa8f52395f07b6604c85ec37dbf500.png)

I added code that is ’ “ensure\_channel\_first”: true ’ in “preprocessing” part in Inference.json of monaibundle.

But it occurs error that is ‘Failed to run Inference in MONAI Label Server’. Does it have solution?

Train.json also need to edit, but I don’t know where it adds code.

please, let me know how to solve error that is Failed to run interence in MONAI Label Server.

- monai.config.print\_debug\_info() -  
================================  
Printing MONAI config…  
================================  
MONAI version: 1.0.1  
Numpy version: 1.23.4  
Pytorch version: 1.12.1+cu113  
MONAI flags: HAS\_EXT = False, USE\_COMPILED = False, USE\_META\_DICT = False  
MONAI rev id: 8271a193229fe4437026185e218d5b06f7c8ce69  
MONAI **file** : C:\Users\AA\AppData\Local\Programs\Python\Python39\lib\site-packages\monai\__init_\_.py

Optional dependencies:  
Pytorch Ignite version: 0.4.10  
Nibabel version: 4.0.2  
scikit-image version: 0.19.3  
Pillow version: 9.3.0  
Tensorboard version: 2.10.1  
gdown version: 4.5.3  
TorchVision version: 0.13.1+cu113  
tqdm version: 4.64.1  
lmdb version: 1.3.0  
psutil version: 5.9.4  
pandas version: 1.5.1  
einops version: 0.6.0  
transformers version: NOT INSTALLED or UNKNOWN VERSION.  
mlflow version: NOT INSTALLED or UNKNOWN VERSION.  
pynrrd version: 0.4.3

For details about installing the optional dependencies, please visit:  
[https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies](https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies)

# ================================ Printing system config…

System: Windows  
Win32 version: (‘10’, ‘10.0.22000’, ‘SP0’, ‘Multiprocessor Free’)  
Win32 edition: Core  
Platform: Windows-10-10.0.22000-SP0  
Processor: AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD  
Machine: AMD64  
Python version: 3.9.13  
Process name: python.exe  
Command: [‘C:\Users\AA\AppData\Local\Programs\Python\Python39\python.exe’, ‘-c’, ‘import monai; monai.config.print\_debug\_info()’]  
Open files: [popenfile(path=‘C:\Program Files\WindowsApps\Microsoft.LanguageExperiencePackko-KR\_22000.29.134.0\_neutral\_\_8wekyb3d8bbwe\Windows\System32\ko-KR\a7c1941e6709c10ab525083b61805316\KernelBase.dll.mui’, fd=-1), popenfile(path=‘C:\Program Files\WindowsApps\Microsoft.LanguageExperiencePackko-KR\_22000.29.134.0\_neutral\_\_8wekyb3d8bbwe\Windows\System32\ko-KR\39386f74d1967f5c37a5b4171f81c8f3\kernel32.dll.mui’, fd=-1), popenfile(path=‘C:\Program Files\WindowsApps\Microsoft.LanguageExperiencePackko-KR\_22000.29.134.0\_neutral\_\_8wekyb3d8bbwe\Windows\System32\ko-KR\fe441ef3ed396a241e46f9f354057863\tzres.dll.mui’, fd=-1)]  
Num physical CPUs: 8  
Num logical CPUs: 16  
Num usable CPUs: 16  
CPU usage (%): [10.8, 3.2, 13.1, 3.8, 7.6, 3.9, 4.5, 0.6, 3.9, 0.0, 1.9, 1.9, 8.3, 8.4, 4.5, 45.3]  
CPU freq. (MHz): 2652  
Load avg. in last 1, 5, 15 mins (%): [0.0, 0.0, 0.0]  
Disk usage (%): 57.4  
Avg. sensor temp. (Celsius): UNKNOWN for given OS  
Total physical memory (GB): 15.4  
Available memory (GB): 7.2  
Used memory (GB): 8.2

# ================================ Printing GPU config…

Num GPUs: 1  
Has CUDA: True  
CUDA version: 11.3  
cuDNN enabled: True  
cuDNN version: 8302  
Current device: 0  
Library compiled for CUDA architectures: [‘sm\_37’, ‘sm\_50’, ‘sm\_60’, ‘sm\_61’, ‘sm\_70’, ‘sm\_75’, ‘sm\_80’, ‘sm\_86’, ‘compute\_37’]  
GPU 0 Name: NVIDIA GeForce RTX 3070 Laptop GPU  
GPU 0 Is integrated: False  
GPU 0 Is multi GPU board: False  
GPU 0 Multi processor count: 40  
GPU 0 Total memory (GB): 8.0  
GPU 0 CUDA capability (maj.min): 8.6

---

<div class="post-metadata">

**Author:** ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)\
**Post date:** [November 19, 2022, 2:04am UTC](https://discourse.slicer.org/t/monai-label-server-error/26300/2 "2022-11-19T02:04:08Z")

</div>

I completed to solve error that is ‘Failed to run Inference in MONAI Label Server’ occurred in MONAI Label server.

---

<div class="post-metadata">

**Author:** ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Post date:** [November 22, 2022, 10:57pm UTC](https://discourse.slicer.org/t/monai-label-server-error/26300/3 "2022-11-22T22:57:42Z")

</div>

This is being discussed here: [https://github.com/Project-MONAI/MONAILabel/issues/1051](https://github.com/Project-MONAI/MONAILabel/issues/1051)
