# PyTorch 2.6 seems to break TotalSegmentor 

**URL:** <https://discourse.slicer.org/t/pytorch-2-6-seems-to-break-totalsegmentor/41493>\
**Category:** Support\
**Created:** [February 4, 2025, 4:28pm UTC](https://discourse.slicer.org/t/pytorch-2-6-seems-to-break-totalsegmentor/41493 "2025-02-04T16:28:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Stuart](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michael_stuart/32/79309_2.png) [@Michael\_Stuart](https://discourse.slicer.org/u/Michael_Stuart)\
**Post date:** [February 4, 2025, 4:28pm UTC](https://discourse.slicer.org/t/pytorch-2-6-seems-to-break-totalsegmentor/41493/1 "2025-02-04T16:28:58Z")

</div>

I was using TotalSegmentor with significant effect for reviewing my spinal fusion surgeries, but the extension stopped working after recent PyTorch 2.6 update. Both on my laptop (fast mode) and Workstation (RTX 3070 GPU).

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [February 4, 2025, 4:38pm UTC](https://discourse.slicer.org/t/pytorch-2-6-seems-to-break-totalsegmentor/41493/2 "2025-02-04T16:38:18Z")

</div>

The developer of nnUNetv2 (a dependency of TotalSegmentator) issued a fix earlier today. Please try going to the “nnUNet” module in Slicer and specifying to install nnUNet \>=2.5.2.

Let us know how it goes for you!

 ![{15F668A2-77BE-4F91-B30C-35B2D0AF80C6}](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/c/7cfbc59a338afec4e952b92e18e5e147a7c425d5.png)
