Installation¶
Requirements¶
- Python 3.10-3.13
- PyTorch 2.0+
- CUDA (optional, for GPU training)
Install from PyPI¶
Core Installation¶
This installs the core package with all vision task dependencies:
Core Dependencies:
torch>=2.0torchvision>=0.15timm>=1.0pytorch-lightning>=2.0torchmetrics>=1.0numpy>=1.23albumentations>=1.3(included by default)opencv-python-headless>=4.8(included by default)pycocotools>=2.0(included by default)huggingface_hub>=0.20transformers>=4.30(included by default)matplotlib>=3.7(included by default)watermark>=2.3loguru>=0.7plotly>=5.0
All tasks supported out of the box
The core installation now includes everything needed for classification, detection, segmentation, and instance segmentation tasks. No additional extras needed!
Optional Dependencies¶
Logger Backends¶
# TensorBoard
pip install autotimm[tensorboard]
# Weights & Biases
pip install autotimm[wandb]
# MLflow
pip install autotimm[mlflow]
Everything¶
Includes all optional dependencies: tensorboard, mlflow, and wandb.
Development Installation¶
For contributing or developing locally:
This installs:
- All optional dependencies
- Development tools: pytest, pytest-cov, ruff, black
Verify Installation¶
import autotimm as at # recommended alias
# Check available backbones
print(len(at.list_backbones())) # 1000+ models
# Check version
print(at.__version__)
Update Notifications¶
When you import autotimm, AutoTimm checks whether a newer release is on PyPI. If yours is out of date, it logs a warning:
WARNING | A new version of autotimm is available: 0.7.34 -> 0.7.37. Upgrade with: pip install -U autotimm
Upgrade with:
How the check works:
- One anonymous request: a single
GETtohttps://pypi.org/pypi/autotimm/json. No information about you, your code, or your data is sent. - At most once a day: the latest version is cached in
~/.cache/autotimm/update_check.json(or$XDG_CACHE_HOME/autotimm/) for 24 hours. While the cache is fresh, no request is made. - Never blocks or fails: the lookup runs in a background thread with a short timeout. If you're offline or behind a firewall, it's skipped silently.
- Shown once per process: DataLoader workers and non-zero distributed ranks (
RANK/LOCAL_RANK) don't repeat it. - Notify only: AutoTimm never upgrades itself. Pre-releases on PyPI are ignored.
The check is skipped automatically in CI (when CI is set), in offline mode (AUTOTIMM_OFFLINE=1 or HF_HUB_OFFLINE=1), and for development installs from source.
To turn it off:
To check on demand (waits for the PyPI lookup):
GPU Support¶
AutoTimm automatically uses GPU when available. Ensure you have CUDA-compatible PyTorch:
If CUDA is not available, install PyTorch with CUDA support from pytorch.org.
Troubleshooting¶
For common installation issues, see the Troubleshooting - Installation which covers:
- ImportError: No module named 'timm'
- CUDA out of memory
- Albumentations not found
- And more installation-related issues