Torchvision

Torchvision1. System information2. Install dependencies3. Install Torchvision3.1. Offline installation3.2, Online Installation3.3. Source code compilation4. Verify installationReferences

1. System information

image-20250121150858152

2. Install dependencies

3. Install Torchvision

According to the correspondence between PyTorch and Torchvision versions, we need to install v0.20 version of Torchvision

torchtorchvisionPython
main / nightlymain / nightly>=3.9, <=3.12
2.50.20>=3.9, <=3.12

3.1. Offline installation

Manually go to the download website to download the latest Torchvision version.

Download URL: https://github.com/ultralytics/assets/releases/download/v0.0.0/torchvision-0.20.0a0+afc54f7-cp310-cp310-linux_aarch64.whl

3.2, Online Installation

3.3. Source code compilation

Manually download version v0.20:

Enter the unzipped folder downloaded from github and compile the source code:

4. Verify installation

image-20241226205711239

References

https://github.com/pytorch/vision

https://docs.ultralytics.com/guides/nvidia-jetson/