# Sandbox related extensions installing and running. Could not find Stitcher and could not run total segmentator

**URL:** <https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768>\
**Category:** Support\
**Tags:** registration, segmentation, extensions-manager\
**Created:** [February 11, 2023, 1:56pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768 "2023-02-11T13:56:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elmahdy](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@Elmahdy](https://discourse.slicer.org/u/Elmahdy)\
**Post date:** [February 11, 2023, 1:56pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/1 "2023-02-11T13:56:43Z")

</div>

Salamo alekom (hello everybody) I am trying to use sandbox extension; I installed SANDBOX on (ver5.2.1). I searched (CTRL+F) for stitcher. I did not find it. Also, when trying to run Total segmentator. it prompts me to install PYtorch( I instilled and updated it).

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 11, 2023, 8:02pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/2 "2023-02-11T20:02:25Z")

</div>

I can confirm that after installing the Sandbox extension in Slicer-5.2.1, the Stitch Volumes module is available:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/0/d06f13efbfcbde3d4185e8c1c0a65a113da20cf9.png)

You can try reinstalling Slicer from scratch and if you still have problems then upload the application log somewhere and post the link here.

> [@Elmahdy](#):
>
> when trying to run Total segmentator. it prompts me to install PYtorch( I instilled and updated it)

Please delete your entire Slicer installation folder and follow the [TotalSegmentator setup instructions](https://github.com/lassoan/SlicerTotalSegmentator#setup) word-by-word. If you find any difference in what you see and what you expect, stop immediately, take a screenshot and copy the logs and create a new topic on this forum to ask for help.

---

<div class="post-metadata">

**Author:** ![Elmahdy](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@Elmahdy](https://discourse.slicer.org/u/Elmahdy)\
**Post date:** [February 13, 2023, 3:05pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/3 "2023-02-13T15:05:46Z")

</div>

Thanks a lot for your reply, it WORKED!!. In total segementator i understand there is a fast mode, What the difference? would it affect the statistics(quantification as volume, area, and size) driven from the segment ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 13, 2023, 3:09pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/4 "2023-02-13T15:09:50Z")

</div>

Fast mode uses 3mm cubes for segmenting objects (instead of 1.5mm of the full-resolution segmentation). Probably size differences are negligible for most use cases, but you need to test if it makes a difference for you. You can run the full-resolution segmentation on CPU, you just need to wait more for the result (about 40 minutes).

---

<div class="post-metadata">

**Author:** ![Elmahdy](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@Elmahdy](https://discourse.slicer.org/u/Elmahdy)\
**Post date:** [February 13, 2023, 3:15pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/5 "2023-02-13T15:15:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/0/f0f13825bb3355bd8488c841cfddaadbb65dbdf1.png)

I have CUDA 11.7 but i do not think it is running  
I enabled it through NEVDA control panel, but still

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/2/a2ab281561c0cc3a44f375018053eae95364ed4f.png)

I am not sure if running on GPU

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [February 13, 2023, 3:30pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/6 "2023-02-13T15:30:14Z")

</div>

You can paste

```auto
import torch
print(torch.cuda.is_available())

```

into 3D Slicers Python console to check this.

---

<div class="post-metadata">

**Author:** ![Elmahdy](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@Elmahdy](https://discourse.slicer.org/u/Elmahdy)\
**Post date:** [February 13, 2023, 4:25pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/7 "2023-02-13T16:25:45Z")

</div>

I was trying it again it comes back with this error msg  
Traceback (most recent call last):  
File “C:\ProgramData\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 2961, in tryWithErrorDisplay  
yield  
File “C:/ProgramData/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 264, in onApplyButton  
self.logic.process(self.ui.inputVolumeSelector.currentNode(), self.ui.outputSegmentationSelector.currentNode(),  
File “C:/ProgramData/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 749, in process  
self.logProcessOutput(proc)  
File “C:/ProgramData/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 656, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[‘C:/ProgramData/NA-MIC/Slicer 5.2.1/bin/…/bin\PythonSlicer.EXE’, ‘C:\ProgramData\NA-MIC\Slicer 5.2.1\lib\Python\Scripts\TotalSegmentator’, ‘-i’, ‘C:/Users/M2/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-02-13\_11+22+31.867/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/M278837/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-02-13\_11+22+31.867/segmentation’, ‘–ml’, ‘–task’, ‘total’, ‘–fast’]’ returned non-zero exit status 120.

---

<div class="post-metadata">

**Author:** ![Elmahdy](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@Elmahdy](https://discourse.slicer.org/u/Elmahdy)\
**Post date:** [February 13, 2023, 4:37pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/8 "2023-02-13T16:37:55Z")

</div>

came back true. Still slow

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 13, 2023, 6:02pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/9 "2023-02-13T18:02:22Z")

</div>

If you don’t have a powerful GPU or CUDA version is not supported by pytorch then you have to force using the CPU as described [here](https://github.com/lassoan/SlicerTotalSegmentator#segmentation-fails-while-predicting).

If you have Intel Integrated Graphics + discrete NVIDIA GPU in your system then make sure that in NVIDIA settings you set `SlicerApp-real.exe` to use the NVIDIA GPU.

---

<div class="post-metadata">

**Author:** ![Elmahdy](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@Elmahdy](https://discourse.slicer.org/u/Elmahdy)\
**Post date:** [February 13, 2023, 6:52pm UTC](https://discourse.slicer.org/t/sandbox-related-extensions-installing-and-running-could-not-find-stitcher-and-could-not-run-total-segmentator/27768/10 "2023-02-13T18:52:57Z")

</div>

I checked the box with fast option and I had this previous mentioned error message
