Torchreid is a PyTorch package for training and evaluating person re-identification models on images and video, with datasets, model zoo access, and unified training scripts.
Overview
Torchreid (also known as deep-person-reid) supports end-to-end deep learning for person re-identification. It covers both image-based and video-based re-id, multi-GPU training, and cross-dataset evaluation using protocols common in research papers.
The package includes data managers for standard re-id benchmarks, implementations of re-id models including OSNet, pretrained weights, and tooling for feature extraction, visualization, and tensorboard logging. Multi-dataset training, domain adaptation hooks, and export to ONNX, OpenVINO, and TFLite are documented in the materials.
Researchers and engineers import torchreid in Python to configure models, optimizers, and training engines, or run bundled config-driven scripts for conventional and cross-domain train/test setups. Optional Docker workflows are described alongside conda-based installs.
Pretrained model weights are distributed via the project model zoo and Hugging Face, and the library is designed to be extended with custom datasets, models, and training methods.
Key features
- Image and video re-identification
- Multi-GPU training support
- Unified train and test scripts
- Multi-dataset training and evaluation
- Pretrained re-id model access
- Feature extraction API
- ONNX and OpenVINO export
- Tensorboard visualization
Use cases
- Training person re-id models
- Cross-domain re-id experiments
- Video surveillance re-id research
- Benchmarking re-id architectures
- Extracting person appearance embeddings