pytorch-image-models: Use PyTorch Image Models and Training Tools

Summary
A Python library of PyTorch image models, pretrained weights, training utilities, and reference scripts. Use it to build image-classification systems, extract backbone features, or train and evaluate models across a broad range of architectures.
At a glance
- Language
- Python
- License
- Apache-2.0
- Stars
- 37.2k
- Forks
- 5.2k
- Added to OSRepos
- May 5, 2026
- Last analyzed
- October 3, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
PyTorch Image Models, commonly called timm, is a library for working with a broad collection of image encoders and backbones in PyTorch. It brings model definitions, pretrained weights, shared interfaces, and supporting training utilities together, reducing the effort needed to compare architectures or integrate a vision backbone into a project.
It is suited to practitioners who need more than a model checkpoint: the repository also provides reference scripts for training, validation, and inference, along with tools for augmentation, optimization, and feature extraction. The official documentation is available at https://huggingface.co/docs/timm, and the repository README provides the full model and feature lists.
Key Features
- A wide range of convolutional and transformer-based image architectures, with pretrained weight variants for many model families.
- A consistent model factory and interfaces for classifier access, feature-only forward passes, and feature-map extraction.
- Pretrained weight loading that can adapt classifier dimensions and convert input channels from three to one where supported.
- Reference training, validation, and inference scripts, with support for single-GPU and distributed workflows.
- Image training components including augmentations, regularization methods, learning-rate schedulers, and numerous optimizers.
- Model validation result tables and documentation for feature extraction and training workflows.
Use Cases
- Vision application developers can select a pretrained backbone and extract features for use in detection, segmentation, or other downstream pipelines.
- Researchers comparing architectures can use the shared model API and pretrained variants to evaluate different image encoders in a common PyTorch workflow.
- Teams training image classifiers can adapt the reference scripts, data-loading utilities, and augmentation options to their datasets.
- Engineers targeting varied compute budgets can choose from model families that include mobile-oriented and larger architectures, then evaluate them for their own deployment constraints.
Project Facts
- Language: Python
- License: Apache-2.0
- Stars: 37.2k
- Forks: 5.2k
- Topics: augmix, convnext, distributed-training, efficientnet, image-classification, imagenet, maxvit, mixnet, mobile-deep-learning, mobilenet-v2, mobilenetv3, nfnets, normalization-free-training, optimizer, pretrained-models, pretrained-weights, pytorch, randaugment, resnet, vision-transformer-models
- Archived: No
Getting Started
Install the package with pip:
pip install timm
See the official documentation and repository README for model selection, pretrained weights, and training instructions.
Considerations
- PyTorch is central to the project, and model training can require substantial compute depending on the architecture, dataset, and workflow. The repository does not specify a single hardware requirement.
- Pretrained weights have licensing considerations separate from the code. In particular, the README notes that ImageNet terms may apply and identifies some weights with additional restrictions. Check the relevant weight and dataset terms before commercial use.
- The collection spans many architectures and weight variants, so confirm the model's input expectations, supported features, and weight provenance for your intended task.
Source repository
Open the original repository on GitHub.
20 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

web-design: A Claude Code SKILL for Spec-First Web Page Design
October 3, 2026
The web-design project is a Claude Code SKILL designed to streamline the creation of beautiful and consistent web pages. It emphasizes a 'spec first, code second' approach, ensuring design principles are established before development begins. This tool helps generate UI, visuals, motion, and responsiveness that are consistent across pages and easily editable.

OOMWOO: Build Your Own Open-Source, Hackable Robot Vacuum Cleaner
October 2, 2026
OOMWOO is an ambitious open-source project enabling users to build their own robot vacuum cleaner using Raspberry Pi, 3D printing, and ROS2. It emphasizes local operation, hackability, and integration with Home Assistant, providing a high-quality, customizable home appliance. This project aims to deliver a fully open hardware, software, and firmware solution for autonomous home cleaning.

Shepherd: Reversible Execution Traces for Programmable Meta-Agents
October 2, 2026
Shepherd is a Python runtime substrate designed for agent work requiring inspection, reversibility, and supervision. It records agent runs as durable, inspectable execution traces, enabling meta-agents to observe, fork, replay, and revert any operation. This framework couples agents and environments using a copy-on-write fork, offering significant performance benefits and robust permission enforcement.

Agent Anvil: CI-First Evaluation Harness for Tool-Using AI Agents
October 1, 2026
Agent Anvil is a robust, CI-first evaluation harness designed for AI agents that utilize tools. It meticulously runs scenario suites, captures detailed traces of agent behavior, and provides semantic grading to identify issues. The platform excels at clustering failures and suggesting concrete fixes for prompts, tools, and guardrails, ensuring agents behave safely and effectively.