# Use Markups to Model outside of 3D Slicer

**URL:** <https://discourse.slicer.org/t/use-markups-to-model-outside-of-3d-slicer/20697>\
**Category:** Support\
**Created:** [November 19, 2021, 11:49am UTC](https://discourse.slicer.org/t/use-markups-to-model-outside-of-3d-slicer/20697 "2021-11-19T11:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![helenawill95](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/helenawill95/32/2650_2.png) [@helenawill95](https://discourse.slicer.org/u/helenawill95)\
**Post date:** [November 19, 2021, 11:49am UTC](https://discourse.slicer.org/t/use-markups-to-model-outside-of-3d-slicer/20697/1 "2021-11-19T11:49:11Z")

</div>

I found a similar feed but it wasn’t clear if the module was a public fn yet outside of the 3d slicer gui.

I am looking to use markups to model features, of translating several surface points, into a 3D mesh and then a binary 3D segmentation for CNN training.

I want to use the same functions as 3D Slicer’s module but in a python script run on my command line, as I will be training a network to identify some hyperparameters. Is this possible?  
Thanks in advance

---

<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:** [November 19, 2021, 2:59pm UTC](https://discourse.slicer.org/t/use-markups-to-model-outside-of-3d-slicer/20697/2 "2021-11-19T14:59:58Z")

</div>

Most Slicer modules rely on many libraries that come bundled in Slicer and in general it would be hard to split out modules to run in other environments. Instead it’s often easier to use Slicer’s python environment, either as a command line program (even with a hidden gui (e.g. with docker or xvfb) if gui-related features are needed) or by pip\_installing machine learning libraries into Slicer’s python. PyTorch and Tensorflow both work fine in Slicer, even with GPU drivers.
