# Integrate deep learning module medical segment into a 3D slicer

**URL:** <https://discourse.slicer.org/t/integrate-deep-learning-module-medical-segment-into-a-3d-slicer/24647>\
**Category:** Support\
**Created:** [August 5, 2022, 3:44am UTC](https://discourse.slicer.org/t/integrate-deep-learning-module-medical-segment-into-a-3d-slicer/24647 "2022-08-05T03:44:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thu\_n\_Chu\_th](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thu_n_chu_th/32/9542_2.png) [@Thu\_n\_Chu\_th](https://discourse.slicer.org/u/Thu_n_Chu_th)\
**Post date:** [August 5, 2022, 3:44am UTC](https://discourse.slicer.org/t/integrate-deep-learning-module-medical-segment-into-a-3d-slicer/24647/1 "2022-08-05T03:44:07Z")

</div>

Operating system:  
Slicer version:  
Expected behavior:  
Actual behavior:

I’m looking to integrate deep learning deep learning into a 3D slicer.  
I found a similar post about brain segmentation ([GitHub - fepegar/SlicerParcellation: 3D Slicer modules for brain segmentation using deep learning.](https://github.com/fepegar/SlicerParcellation#readme)). but t install according to the instructions, the 3D slicer gives an error.  
Hope everybody help please.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/d/3db813efc667b4e5876c2330a2791f416744da59.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 5, 2022, 2:09pm UTC](https://discourse.slicer.org/t/integrate-deep-learning-module-medical-segment-into-a-3d-slicer/24647/2 "2022-08-05T14:09:17Z")

</div>

There should be messages in the python console telling why it didn’t load. It would be great if you could debug the module and contribute fixes. @Fernando may have additional suggestions.

---

<div class="post-metadata">

**Author:** ![Thu\_n\_Chu\_th](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thu_n_chu_th/32/9542_2.png) [@Thu\_n\_Chu\_th](https://discourse.slicer.org/u/Thu_n_Chu_th)\
**Post date:** [August 5, 2022, 3:25pm UTC](https://discourse.slicer.org/t/integrate-deep-learning-module-medical-segment-into-a-3d-slicer/24647/3 "2022-08-05T15:25:21Z")

</div>

I look forward to everyone’s help to solve this problem.  
I followed the instructions on the github code link. But I don’t know if I’ve done enough.

- I have downloaded torchIO and pytorch on 3D slicer extension.
- I have downloaded and unzipped the github code.  
I then linked the code to the 3D slicer via Edit/application setting/modules/ Additional modules path. and I passed the entire link code in there.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/4/a49e9b4b035a612876d555007eb96bf8814d6757.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/4/a49e9b4b035a612876d555007eb96bf8814d6757.png)

When I click on BrainParcellation, there is no message and nothing happens.

---

<div class="post-metadata">

**Author:** ![Thu\_n\_Chu\_th](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thu_n_chu_th/32/9542_2.png) [@Thu\_n\_Chu\_th](https://discourse.slicer.org/u/Thu_n_Chu_th)\
**Post date:** [August 5, 2022, 3:28pm UTC](https://discourse.slicer.org/t/integrate-deep-learning-module-medical-segment-into-a-3d-slicer/24647/4 "2022-08-05T15:28:48Z")

</div>

when I read the author’s code I see that the UNet network downloads are all open source and library. So I don’t know if doing it on my computer will need to fix or change this code.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [September 19, 2022, 8:27pm UTC](https://discourse.slicer.org/t/integrate-deep-learning-module-medical-segment-into-a-3d-slicer/24647/5 "2022-09-19T20:27:32Z")

</div>

Thanks for the ping, Steve.

Hi, @Thu_n_Chu_th. Could you please share which version of Slicer you’re using and whether you see any messages in the Python console, as @pieper suggested?
