# Torchvision "corrupted" in Pytorch Util

**URL:** <https://discourse.slicer.org/t/torchvision-corrupted-in-pytorch-util/43353>\
**Category:** Support\
**Tags:** pytorch, pytorch-util\
**Created:** [June 14, 2025, 2:25am UTC](https://discourse.slicer.org/t/torchvision-corrupted-in-pytorch-util/43353 "2025-06-14T02:25:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chz31](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chz31/32/77363_2.png) [@chz31](https://discourse.slicer.org/u/chz31)\
**Post date:** [June 14, 2025, 2:25am UTC](https://discourse.slicer.org/t/torchvision-corrupted-in-pytorch-util/43353/1 "2025-06-14T02:25:31Z")

</div>

My Pytorch Util module showed TorchVision corrupted

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/e/8e4d6be8933e91fa213a2c12fe33887ea54cc7ff.png)

I am using Ubuntu 22.04. I have reinstalled pytorch in Pytorch Util multiple times. The Dental Segmentator & Total Segmentator both used the GPU well.

nvidia-smi printed out the gpu information well. Install torch in a conda environment can also access GPU.

Should I just ignore it? Thanks!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [June 14, 2025, 2:45am UTC](https://discourse.slicer.org/t/torchvision-corrupted-in-pytorch-util/43353/2 "2025-06-14T02:45:19Z")

</div>

This happens to be on Linux as well, and I wasn’t able to find a solution.  
If you don’t need the torchvision, you can ignore it. If you need the torchvision (e.g., Photogrammetry extension), you will have to use a different cuda version. 11.8 works for me.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 14, 2025, 2:17pm UTC](https://discourse.slicer.org/t/torchvision-corrupted-in-pytorch-util/43353/3 "2025-06-14T14:17:47Z")

</div>

There’s a discussion here: [Can't install on Slicer 5.9.0 2025-05-18 on ubuntu 24.04 · Issue #34 · dalcalab/SlicerMultiverSeg · GitHub](https://github.com/dalcalab/SlicerMultiverSeg/issues/34)

Ultimately, installing torchvision manually with pip as suggested on the pytorch page worked.

It would be great if someone could figure out how to fix PyTorchUtils.

> <https://github.com/fepegar/SlicerPyTorch/issues/19>
>
> Details are in this issue: https://github.com/dalcalab/SlicerMultiverSeg/issues/…34

---

<div class="post-metadata">

**Author:** ![chz31](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chz31/32/77363_2.png) [@chz31](https://discourse.slicer.org/u/chz31)\
**Post date:** [June 15, 2025, 3:27am UTC](https://discourse.slicer.org/t/torchvision-corrupted-in-pytorch-util/43353/4 "2025-06-15T03:27:10Z")

</div>

Thanks! `/PythonSlicer -m pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu124` worked for me.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/6/36441dee9e1f1721e60b416e91f55b4cef7d1a27.png)
