question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation_[anatomy] model does not show up under Auto Segmentation header.

See original GitHub issue

Describe the bug When using a fairly straightforward non-interactive segmentation model, I expected to be able to provide a handful of manual segmentations, train the model, and simply run the auto segmentation to finish up the rest of my dataset.

However, I unfortunately can’t select the model in the Auto Segmentation header.

I am using a custom implementation of the segmentation_spleen.py example files, with only the label name and class names changed.

To Reproduce Steps to reproduce the behavior:

  1. Provide a number of manual segmentations to start off the segmentation model
  2. Train model successfully
  3. Notice that there is no way to actually use the trained model

Expected behavior After providing a few manual segmentations, I expect to be able to use the now trained model in segmenting my anatomy of choice.

Screenshots WhereModel

Environment

Ensuring you use the relevant python executable, please paste the output of:

================================
Printing MONAI config...
================================
MONAI version: 0.9.0
Numpy version: 1.22.4
Pytorch version: 1.11.0+cpu
MONAI flags: HAS_EXT = False, USE_COMPILED = False
MONAI rev id: af0e0e9f757558d144b655c63afcea3a4e0a06f5
MONAI __file__: C:\Users\[Username]\AppData\Local\pypoetry\Cache\virtualenvs\nnunetdocker-uHdzYLSm-py3.9\lib\site-packages\monai\__init__.py

Optional dependencies:
Pytorch Ignite version: 0.4.8
Nibabel version: 3.2.2
scikit-image version: 0.19.3
Pillow version: 9.1.1
Tensorboard version: 2.9.1
gdown version: 4.4.0
TorchVision version: 0.12.0+cpu
tqdm version: 4.64.0
lmdb version: 1.3.0
psutil version: 5.9.1
pandas version: 1.4.2
einops version: 0.4.1
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


================================
Printing system config...
================================
System: Windows
Win32 version: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Win32 edition: Enterprise
Platform: Windows-10-10.0.19044-SP0
Processor: Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
Machine: AMD64
Python version: 3.9.13
Process name: python.exe
Command: ['C:\\Users\\[Username]\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', '-c', 'import monai; monai.config.print_debug_info()']
Open files: [popenfile(path='C:\\Windows\\System32\\en-US\\kernel32.dll.mui', fd=-1), popenfile(path='C:\\Windows\\System32\\en-US\\tzres.dll.mui', fd=-1), popenfile(path='C:\\Windows\\System32\\en-US\\KernelBase.dll.mui', fd=-1)]  
Num physical CPUs: 12
Num logical CPUs: 24
Num usable CPUs: 24
CPU usage (%): [5.0, 3.8, 1.9, 0.6, 0.0, 1.2, 1.9, 1.9, 0.6, 0.0, 0.6, 0.6, 2.5, 72.3, 0.6, 0.6, 0.6, 1.2, 1.9, 0.0, 1.2, 1.9, 0.0, 13.8]
CPU freq. (MHz): 3504
Load avg. in last 1, 5, 15 mins (%): [0.0, 0.0, 0.0]
Disk usage (%): 66.6
Avg. sensor temp. (Celsius): UNKNOWN for given OS
Total physical memory (GB): 31.7
Available memory (GB): 15.7
Used memory (GB): 16.0

================================
Printing GPU config...
================================
Num GPUs: 0
Has CUDA: False
cuDNN enabled: False

Additional context None, however CUDA 11.6 and 11.7 are installed, and nvidia-smi works, while MONAI tells me CUDA is not available. This is (probably) not relevant to my issue though, and I might open a new issue for that.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:29

github_iconTop GitHub Comments

1reaction
rbummcommented, Aug 2, 2022

Agree, but it is difficult to find out. By installing 5.0.3 we have an empty extension “directory” and need to collect MonaiLabel (and other extensions) again from the extension manager. In that step, we probably get the latest MonaiLabel extension sources. It looks as if in the previous version (with the error that you and I saw) the list of available ML models was not correctly displayed by the extension, thus, the MonaiLabel auto segmentation drop-down field remained empty. I did not observe a crash of any kind. Probably there was just a necessary update in 3D Slicer, otherwise, it would not have been necessary to publish a new stable.

Did you see a crash and - is your problem solved now?

1reaction
che85commented, Aug 2, 2022

It would still be interesting to know what the reason for this issue is. Is there anything cashed by MONIA Label, that we could delete instead of reinstalling everything?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segment Editor - Liver segmentation issue
We've previously had this issue with this Slicer version: Segmentation_[anatomy] model does not show up under Auto Segmentation header.
Read more >
Clinically Applicable Segmentation of Head and Neck ... - NCBI
Deep learning is an effective and clinically applicable technique for the segmentation of the head and neck anatomy for radiotherapy. With appropriate ...
Read more >
Anatomically curated segmentation of human subcortical ...
Magnetic resonance imaging (MRI)-based brain segmentation has recently been ... ROI in an MRI may not correspond precisely to the anatomical ...
Read more >
Medical Image Segmentation with Machine Learning - Synopsys
Discover our collection of anatomy-specific Auto Segmenter modules, as well as ... Less Segmentation - More Innovation: Free up engineering time for more ......
Read more >
Auto-segmentation of head and neck organs at risk in ...
Auto -segmentation algorithms may be atlas based, model based or hybrid ... Anatomic similarity is essential for a good auto-segmentation in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found