torchvision

Torchvision provides datasets, transforms, and models for computer vision with PyTorch.

github.com/pytorch/vision
torchvision homepage screenshot

About torchvision

Torchvision is an open source library for PyTorch that provides datasets, model architectures, and common image transformations for computer vision work. It is distributed through the pytorch/vision GitHub repository under the BSD-3-Clause license. The repository's version table maps each torchvision release to compatible torch and Python versions, and the API documentation is hosted on the PyTorch website.

Torchvision is a utility library. It downloads and prepares public datasets but does not host or distribute them, and it does not vouch for their quality or license terms. Users must determine whether they have permission to use each dataset. Pre-trained models may carry their own licenses or terms. For example, SWAG models are released under CC-BY-NC 4.0.

Key features

  • Datasets for computer vision that are downloaded and prepared by the library
  • Common image transformations for computer vision tasks
  • Computer vision model architectures, including pre-trained models
  • Image backends for both PyTorch tensors and PIL images
  • Optional Pillow-SIMD backend as a drop-in replacement for Pillow
  • Version table listing torchvision, torch, and supported Python versions
Best for: Developers and researchers building computer vision models with PyTorch who need ready-made datasets, transforms, and model architectures.
Good for
  • Open source under the BSD-3-Clause license
  • Supports both torch tensors and PIL images as image backends
  • Publishes a version table that lists compatible torch and Python versions
Watch out for
  • Does not host or distribute the datasets it downloads
  • Users must confirm their own permission to use each dataset and pre-trained model
  • Some pre-trained models, such as SWAG, use CC-BY-NC 4.0, which carries non-commercial terms

torchvision at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

torchvision alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Infrastructure & MLOps

Well-known listings from the same topic.

All 341

torchvision FAQ

Does torchvision host the datasets it provides?
No. The library downloads and prepares public datasets but does not host or distribute them. Users are responsible for determining whether they have permission to use each dataset under its license.
Which Python versions does torchvision support?
It depends on the release. For the main and nightly builds and torch 2.10 through 2.13, the repository lists support for Python 3.10 up to and including 3.14. Older releases have different ranges listed in the version table.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing