# SegmentationUNet Logic Module

**URL:** <https://discourse.slicer.org/t/segmentationunet-logic-module/25433>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [September 26, 2022, 8:23am UTC](https://discourse.slicer.org/t/segmentationunet-logic-module/25433 "2022-09-26T08:23:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isabella\_Romero](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/isabella_romero/32/15865_2.png) [@Isabella\_Romero](https://discourse.slicer.org/u/Isabella_Romero)\
**Post date:** [September 26, 2022, 8:23am UTC](https://discourse.slicer.org/t/segmentationunet-logic-module/25433/1 "2022-09-26T08:23:52Z")

</div>

Hi,

Does anyone have an example using the SegmentationUNet Logic Module in Python to recreate the segmentation of an image?

Thank you.

---

<div class="post-metadata">

**Author:** ![ungi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ungi/32/78573_2.png) [@ungi](https://discourse.slicer.org/u/ungi)\
**Post date:** [September 27, 2022, 3:19am UTC](https://discourse.slicer.org/t/segmentationunet-logic-module/25433/2 "2022-09-27T03:19:55Z")

</div>

Hi, the widget of this module is probably the only example of using the logic. I don’t know of other modules using it.  
Trained models usually expect specific input format. Unless your trained model uses exactly the same format for input and output, you probably need to modify the SegmentationUNet module, keep it backwards compatible, and submit a pull request. Or implement your own module based on this one.
