# Head oculomotor task in total segmentator nor working

**URL:** <https://discourse.slicer.org/t/head-oculomotor-task-in-total-segmentator-nor-working/44158>\
**Category:** Support\
**Created:** [August 21, 2025, 8:06am UTC](https://discourse.slicer.org/t/head-oculomotor-task-in-total-segmentator-nor-working/44158 "2025-08-21T08:06:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![philippepellerin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/philippepellerin/32/16062_2.png) [@philippepellerin](https://discourse.slicer.org/u/philippepellerin)\
**Post date:** [August 21, 2025, 8:06am UTC](https://discourse.slicer.org/t/head-oculomotor-task-in-total-segmentator-nor-working/44158/1 "2025-08-21T08:06:17Z")

</div>

I can’t operate total segmentator with the task oculomotor muscles, I got an error message when making any attempt.  
I am running Slicer 5,9,0 25-08-14 on a Mac Apple chip M2 Sequoia 15.6. What is wrong?

 ![PastedGraphic-1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/a/8a9fd50a512a3baea5f84792a4f2b7f9b7f2eb2c.png)

Here after the error log: Processing started  
Writing input file to /private/var/folders/xw/49j5chs13nl\_nzll7509jd5h0000gn/T/Slicer-philippe/\_\_SlicerTemp\_\_2025-08-16\_16+49+21.069/total-segmentator-input.nii  
Creating segmentations with TotalSegmentator AI…  
Total Segmentator arguments: [‘-i’, ‘/private/var/folders/xw/49j5chs13nl\_nzll7509jd5h0000gn/T/Slicer-philippe/\_\_SlicerTemp\_\_2025-08-16\_16+49+21.069/total-segmentator-input.nii’, ‘-o’, ‘/private/var/folders/xw/49j5chs13nl\_nzll7509jd5h0000gn/T/Slicer-philippe/\_\_SlicerTemp\_\_2025-08-16\_16+49+21.069/segmentation’, ‘–ml’, ‘–task’, ‘oculomotor\_muscles’]  
No GPU detected. Running on CPU. This can be very slow. The ‘–fast’ or the `--roi_subset` option can help to reduce runtime.

If you use this tool please cite: [https://pubs.rsna.org/doi/10.1148/ryai.230024](https://pubs.rsna.org/doi/10.1148/ryai.230024)

Traceback (most recent call last):  
File “/Applications/Slicer.app/Contents/lib/Python/bin/TotalSegmentator”, line 8, in  
sys.exit(main())  
^^^^^^  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/totalsegmentator/bin/TotalSegmentator.py”, line 155, in main  
totalsegmentator(args.input, args.output, args.ml, args.nr\_thr\_resamp, args.nr\_thr\_saving,  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/totalsegmentator/python\_api.py”, line 142, in totalsegmentator  
from totalsegmentator.nnunet import nnUNet\_predict\_image # this has to be after setting new env vars  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/totalsegmentator/nnunet.py”, line 29, in  
from totalsegmentator.custom\_trainers import nnUNetTrainer\_MOSAIC\_1k\_QuarterLR\_NoMirroring  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/totalsegmentator/custom\_trainers.py”, line 2, in  
from nnunetv2.training.nnUNetTrainer.variants.data\_augmentation.nnUNetTrainerNoMirroring import nnUNetTrainerNoMirroring  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/nnunetv2/training/nnUNetTrainer/variants/data\_augmentation/nnUNetTrainerNoMirroring.py”, line 26, in  
from nnunetv2.training.nnUNetTrainer.nnUNetTrainer import nnUNetTrainer  
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/nnunetv2/training/nnUNetTrainer/nnUNetTrainer.py”, line 43, in  
from torch import GradScaler  
ImportError: cannot import name ‘GradScaler’ from ‘torch’ (/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/torch/ **init**.py)

---

<div class="post-metadata">

**Author:** ![philippepellerin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/philippepellerin/32/16062_2.png) [@philippepellerin](https://discourse.slicer.org/u/philippepellerin)\
**Post date:** [August 27, 2025, 1:59pm UTC](https://discourse.slicer.org/t/head-oculomotor-task-in-total-segmentator-nor-working/44158/2 "2025-08-27T13:59:25Z")

</div>

Sorry, I tried it in the stable release and it is working fine. It was a disability only in the preview, but it was…
