How To Install TotalSegmentor module

Dear all,

I was plugin the TotalSegmentor extension. But got error.

Failed to compute results.

Command ‘[‘C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘light_the_torch’, ‘install’, ‘torch’]’ returned non-zero exit status 1.

Traceback (most recent call last):
** File “C:\Users\Akmal\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 2961, in tryWithErrorDisplay**
** yield**
** File “C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 248, in onApplyButton**
** self.logic.setupPythonRequirements()**
** File “C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 494, in setupPythonRequirements**
** torch = torchLogic.installTorch(askConfirmation=True)**
** File “C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/PyTorch/lib/Slicer-5.2/qt-scripted-modules/PyTorchUtils.py”, line 180, in installTorch**
** slicer.util._executePythonModule(‘light_the_torch’, args)**
** File “C:\Users\Akmal\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 3533, in _executePythonModule**
** logProcessOutput(proc)**
** File “C:\Users\Akmal\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 3502, in logProcessOutput**
** raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)**
subprocess.CalledProcessError: Command ‘[‘C:/Users/Akmal/AppData/Local/NA-MIC/Slicer 5.2.1/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘light_the_torch’, ‘install’, ‘torch’]’ returned non-zero exit status 1.

Thanks for reporting, it is due to a regression that I introduced a few days ago when I improved GPU detection. Update PyTorch extension tomorrow in the extensions manager and it should work well. Let me know if you run into any further issues.

SOlve. Thank you sir.

1 Like