# Lung segmentation

**URL:** <https://discourse.slicer.org/t/lung-segmentation/15324>\
**Category:** Support\
**Tags:** segmentation, lungctanalyzer\
**Created:** [January 3, 2021, 4:03pm UTC](https://discourse.slicer.org/t/lung-segmentation/15324 "2021-01-03T16:03:45Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![ROBERTO\_TONELLI](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/roberto_tonelli/32/65647_2.png) [@ROBERTO\_TONELLI](https://discourse.slicer.org/u/ROBERTO_TONELLI)\
**Post date:** [April 22, 2023, 10:11am UTC](https://discourse.slicer.org/t/lung-segmentation/15324/22 "2023-04-22T10:11:29Z")

</div>

I am experiencing troubles when try to launch AI lungmask in the CT Segmenter module.  
It reports the following note

Failed to compute results: [Errno 2] No such file or directory: ‘R231’

Any help?

---

<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:** [April 22, 2023, 10:25am UTC](https://discourse.slicer.org/t/lung-segmentation/15324/23 "2023-04-22T10:25:56Z")

</div>

Could you provide some more information?  
On which operating system are you?  
Which Lung CT Analyzer version do you use?

I get a good result with R231 lungmask AI:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/c/7ce6f62ba25ebbe1a93241a2787316eede837ab0.jpeg)

---

<div class="post-metadata">

**Author:** ![ROBERTO\_TONELLI](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/roberto_tonelli/32/65647_2.png) [@ROBERTO\_TONELLI](https://discourse.slicer.org/u/ROBERTO_TONELLI)\
**Post date:** [April 22, 2023, 2:56pm UTC](https://discourse.slicer.org/t/lung-segmentation/15324/24 "2023-04-22T14:56:26Z")

</div>

Thank for the reply. I’m working on MacOS Monterey, the Lung CT analyzer version is 2.66. If I do the segmentation without AI it seems to work properly. When I add AI lung mask this is what I got

 ![Schermata 2023-04-22 alle 16.48.49](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/a/1af4edf2bcc328338859efddb66b3f61bd086138.jpeg)

---

<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:** [April 22, 2023, 5:26pm UTC](https://discourse.slicer.org/t/lung-segmentation/15324/25 "2023-04-22T17:26:59Z")

</div>

For the lungmask AI segmentation you only need to select “Use AI” and “lungmask R231”, then press “Start” and wait approx. 2 minutes. No placement of additional markups.

[Previous page](https://discourse.slicer.org/t/lung-segmentation/15324.md?page=1)
