SlicerMorph / SlicerMEMOS

Mouse Embryo Multi-Organ Segmentations
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

Issues identified during trying out this extension #13

Closed fedorov closed 9 months ago

fedorov commented 1 year ago

I wanted to try it out on MR images of the mouse. I followed the installation instructions accompanying the paper, using stable release of Slicer (5.2.1) and ran into the following issues.

  1. I installed PyTorch Utils extension, but it reported that NVIDIA driver was not found, even though running nvidia-smi from the terminal or from the python console recognized the GPU. I installed pytorch from the command line, and after this I could see pytorch libraries in the PyTorch Utils interface, but still no NVIDIA drivers.
  2. When I tried to run segmentation, Slicer crashed.

I tried this on one of the images available from a PDMR collection in IDC (here's one example: https://viewer.imaging.datacommons.cancer.gov/viewer/2.25.279830772673637264923333307592482705135?SeriesInstanceUID=2.25.94829331130993737408035901430728862042).

I understand this model was not developed/tested for MR or for "adult mouse", but I thought I report those issues in case this can help making the extension more robust.

muratmaga commented 1 year ago

Thanks @fedorov

Now torch installation is handled by the PyTorch extension, which is a dependency. You no longer need to do this manually, but you should try with the latest stable (I think the extensions for older stable goes stale).

fedorov commented 1 year ago

@muratmaga I mis-spoke. I am using Slicer 5.2.2, the latest stable. This is on a JetStream VM instance, so I could maybe even add you to that VM, if you would like to debug. But it is not in the critical path for me, I am just letting you know if you want to investigate.

On a related topic, can you recommend any open source tools - in Slicer or outside - that are available for segmentation of mouse CT or MR?

muratmaga commented 1 year ago

Interesting, I have been running MEMOS on JS2 for couple months no issues (since we switch to PyUtils extension as opposed to manual install of Torch). See the screenshot. I literally didn't need to do anything beyond, install PyUtils, run auto detection, and let it do it job. Then install MEMOS.

image
muratmaga commented 1 year ago

On a related topic, can you recommend any open source tools - in Slicer or outside - that are available for segmentation of mouse CT or MR?

We don't use MR, so my knowledge is prettty limited. I think there are a few mouse atlases that were published before. You might want to checkout http://www.mouseimaging.ca/technologies/mouse_atlas/C57Bl6j_mouse_atlas.html

perhaps then you can proceed with the Atlas-based segmentation using something like ANTsR or ANTsPy.