# Implementing a deep learning based image segmentation in Slicer3D

**URL:** https://discourse.slicer.org/t/implementing-a-deep-learning-based-image-segmentation-in-slicer3d/19456
**Category:** Development
**Created:** [September 1, 2021, 8:02am UTC](https://discourse.slicer.org/t/implementing-a-deep-learning-based-image-segmentation-in-slicer3d/19456 "2021-09-01T08:02:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Aamir\_Khan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aamir_khan/32/8627_2.png) [@Aamir\_Khan](https://discourse.slicer.org/u/Aamir_Khan)
#### Post date: [September 1, 2021, 8:02am UTC](https://discourse.slicer.org/t/implementing-a-deep-learning-based-image-segmentation-in-slicer3d/19456/1 "2021-09-01T08:02:00Z")

</div>

Hello,

I am trying to develop a deep learning based image segmentation of pelvic bone region. During my search for open source training dataset I came across a paper which has already implemented a good strategy for doing so. The paper is implemented in Pytorch and makes use of MONAI framework in the process. I am attaching the link of the github repository.

[GitHub - ICT-MIRACLE-lab/CTPelvic1K: Resources of the paper “Deep Learning to Segment Pelvic Bones: Large-scale CT Datasets and Baseline Models”.]

([GitHub - ICT-MIRACLE-lab/CTPelvic1K: Resources of the paper “Deep Learning to Segment Pelvic Bon](https://github.com/ICT-MIRACLE-lab/CTPelvic1K))

I wanted to ask as to how much time would it take to transfer the implementation from PYtorch format to start using it in Slicer3D for the segmentation purposes?

Thanks

---

<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: [September 1, 2021, 2:11pm UTC](https://discourse.slicer.org/t/implementing-a-deep-learning-based-image-segmentation-in-slicer3d/19456/2 "2021-09-01T14:11:14Z")

</div>

You can use pytorch directly in Slicer now, so it should be pretty straightforward to bring that into Slicer.

> **[GitHub - fepegar/SlicerPyTorch: This extension contains only a module with...](https://github.com/fepegar/SlicerPyTorch)**
>
> This extension contains only a module with some tools to install PyTorch inside Slicer, using the best possible version. - GitHub - fepegar/SlicerPyTorch: This extension contains only a module with...
