PyTorch image model collection with training, eval, and inference scripts
Top 1.0% on sourcepulse
PyTorch Image Models (timm) is a comprehensive PyTorch library providing a vast collection of state-of-the-art image classification models, layers, utilities, and training scripts. It aims to facilitate research and development in computer vision by offering easy access to diverse architectures and pretrained weights, catering to researchers and practitioners.
How It Works
timm aggregates numerous vision model architectures, including popular ones like ResNet, EfficientNet, Vision Transformer (ViT), and ConvNeXt, along with many less common ones. It provides pretrained weights for most models, often trained on ImageNet, and includes utilities for feature extraction, multi-scale processing, and various regularization techniques. The library also offers a wide range of optimizers and learning rate schedulers, promoting reproducible research.
Quick Start & Requirements
pip install timm
Highlighted Details
features_only
extraction and forward_intermediates
API.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The use of pretrained weights for commercial products may be restricted due to ImageNet's non-commercial license and specific licenses of proprietary datasets used for some models (e.g., Facebook's WSL/SSL models). Users should verify licensing compliance for their specific use case.
19 hours ago
1 day