# Monailabel and slicer segmentation label number

**URL:** <https://discourse.slicer.org/t/monailabel-and-slicer-segmentation-label-number/31502>\
**Category:** Support\
**Created:** [September 1, 2023, 10:17am UTC](https://discourse.slicer.org/t/monailabel-and-slicer-segmentation-label-number/31502 "2023-09-01T10:17:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ylim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ylim/32/68611_2.png) [@Ylim](https://discourse.slicer.org/u/Ylim)\
**Post date:** [September 1, 2023, 10:17am UTC](https://discourse.slicer.org/t/monailabel-and-slicer-segmentation-label-number/31502/1 "2023-09-01T10:17:39Z")

</div>

Hi all, sorry if this is a rather trivial question.  
I have slicer and monailabel. Found the label number to be very confusing.

Within \monilabel\apps\radiology\main.py

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/4/5481faed8ec99ff1adf47a204f4a77dad698f55b.png)

Within slicer’s segmentation  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/8/68c324c15bd11a7fb3f411f25321fa8fa2e2e32d.png)

I have the impression that the main.py sets the label value/number but they do not agree or reads similar.  
Please advise.

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [September 2, 2023, 1:58am UTC](https://discourse.slicer.org/t/monailabel-and-slicer-segmentation-label-number/31502/2 "2023-09-02T01:58:59Z")

</div>

Just make sure you use consistent label numbering throughout your project and that you remove all labels that you won’t need.

---

<div class="post-metadata">

**Author:** ![Ylim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ylim/32/68611_2.png) [@Ylim](https://discourse.slicer.org/u/Ylim)\
**Post date:** [September 2, 2023, 12:28pm UTC](https://discourse.slicer.org/t/monailabel-and-slicer-segmentation-label-number/31502/3 "2023-09-02T12:28:06Z")

</div>

Thanks. Resolved, a very trivial issue.
