qmetrics.net

PyTorch Vision

PyTorch computer vision datasets, models, and transforms

PyTorch Vision screenshot

Torchvision bundles datasets, model architectures, image and video transforms, and utilities for computer vision work on top of PyTorch.

Overview

Torchvision is a companion package to PyTorch focused on computer vision. It ships widely used public datasets with download helpers, model architectures with optional pre-trained weights, and image and video transformation pipelines, including a newer v2 API for images, videos, boxes, and related tensor types.

Model coverage spans classification, semantic segmentation, object and instance detection, person keypoints, video classification, and optical flow, each documented with weight loading guidance. Dataset utilities download and prepare data locally; the project does not host the raw datasets itself and leaves license compliance to the user. Pre-trained weights may carry their own terms, including non-commercial licenses called out for some SWAG models.

Image loading can use PIL or torch tensors; video decoding is supported through a PyAV-backed backend. Transform layers include drawing helpers for boxes, masks, and keypoints, IO utilities, and operators aimed at detection workflows. Documentation distinguishes stable, beta, and prototype APIs so callers know what to expect long term.

The library is maintained as part of the broader PyTorch ecosystem alongside torchaudio and related projects. Install pairing follows published compatibility tables matching torchvision releases to specific torch and Python versions.

Key features

  • Built-in vision dataset loaders
  • Pre-trained vision model weights
  • Image and video transform v2 API
  • TVTensor types for boxes and masks
  • Detection and segmentation operators
  • Drawing and grid visualization helpers
  • Configurable PIL or tensor image backends
  • PyAV-based video decode backend

Use cases

  • Training image classifiers with PyTorch
  • Loading standard vision benchmarks
  • Transfer learning from torchvision weights
  • Prototyping detection or segmentation pipelines

Tags

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0