TotalSegmentator install problem - pytorch version?

mhopeng
Sun, 15 Feb 2026 19:00:14 +0000
Support

Hello, I’ve tried to install TotalSegmentator on two macOS systems. When I try to run the sample data set, I get an error that seems to be related to the PyTorch version:

ImportError: cannot import name ‘GradScaler’ from ‘torch’ (/Applications/Slicer.app/Contents/lib/Python/lib/python3.12/site-packages/torch/_init_.py)

A google search suggests that this is a problem with the PyTorch version. The PyTorch installation appears to be managed by a Slicer extension. Is there a version mismatch, or am I on the wrong track here?

3 posts - 2 participants