← all repositories
pytorch/vision

The standard library PyTorch forgot to ship

torchvision bundles the datasets, transforms, and model architectures that every computer vision project ends up rewriting from scratch.

17.8k stars Python Computer VisionML Frameworks
vision
Not currently ranked — collecting fresh signals.
star history

What it does

torchvision is PyTorch’s official companion library for computer vision. It provides ready-to-use datasets, common image transformations, and pre-built model architectures (ResNet, ViT, etc.) that plug directly into torch training loops. It also handles the tedious glue between PIL images and GPU tensors.

The interesting bit

The library’s real value is in being boringly comprehensive: it standardizes the fiddly parts of CV pipelines so researchers stop reinventing data loaders. The README notably flags that it doesn’t host datasets itself—just downloads and prepares them—shifting legal responsibility to users. Some pre-trained models carry their own licenses (SWAG models are CC-BY-NC 4.0, for instance).

Key highlights

  • Ships with both classic and modern architectures, pre-trained weights available
  • Image backends support raw torch tensors plus PIL/Pillow-SIMD for SIMD-accelerated transforms
  • Version-locked to PyTorch releases with explicit Python compatibility matrices going back to Python 2.7
  • Dataset utilities include standard CV benchmarks (ImageNet, COCO, etc.) without hosting the actual data

Caveats

  • The README is essentially a compatibility table and disclaimer collection; actual API details live entirely in external docs
  • No mention of performance characteristics, hardware acceleration details, or how transforms compare to alternatives like Albumentations

Verdict

Essential if you’re already in the PyTorch ecosystem and want off-the-shelf CV primitives. Skip if you need fine-grained control over augmentation pipelines or are committed to another framework—this is glue code, not a research platform.

Frequently asked

What is pytorch/vision?
torchvision bundles the datasets, transforms, and model architectures that every computer vision project ends up rewriting from scratch.
Is vision open source?
Yes — pytorch/vision is open source, released under the BSD-3-Clause license.
What language is vision written in?
pytorch/vision is primarily written in Python.
How popular is vision?
pytorch/vision has 17.8k stars on GitHub.
Where can I find vision?
pytorch/vision is on GitHub at https://github.com/pytorch/vision.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.