pycls is an image classification codebase, written in PyTorch. It was originally developed for the On Network Design Spaces for Visual Recognition project. pycls has since matured and been adopted by a number of projects at Facebook AI Research.
The goal of pycls is to provide a simple and flexible codebase for image classification. It is designed to support rapid implementation and evaluation of research ideas. pycls also provides a large collection of baseline results (Model Zoo).
The codebase supports efficient single-machine multi-gpu training, powered by the PyTorch distributed package, and provides implementations of standard models including ResNet, ResNeXt, EfficientNet, and RegNet.
Please see INSTALL.md
for brief installation instructions. After installation, please see GETTING_STARTED.md
for basic instructions and example commands on training and evaluation with pycls.
We provide a large set of baseline results and pretrained models available for download in the pycls Model Zoo; including the simple, fast, and effective RegNet models that we hope can serve as solid baselines across a wide range of flop regimes.
A number of projects at FAIR have been built on top of pycls:
- On Network Design Spaces for Visual Recognition
- Exploring Randomly Wired Neural Networks for Image Recognition
- Designing Network Design Spaces
- Are Labels Necessary for Neural Architecture Search?
- PySlowFast Video Understanding Codebase
If you are using pycls in your research and would like us to include your project here, please let us know or send a PR.
If you find pycls helpful in your research or refer to the baseline results in the Model Zoo, please consider citing:
@InProceedings{Radosavovic2019,
title = {On Network Design Spaces for Visual Recognition},
author = {Radosavovic, Ilija and Johnson, Justin and Xie, Saining and Lo, Wan-Yen and Doll{\'a}r, Piotr},
booktitle = {ICCV},
year = {2019}
}
@InProceedings{Radosavovic2020,
title = {Designing Network Design Spaces},
author = {Radosavovic, Ilija and Kosaraju, Raj Prateek and Girshick, Ross and He, Kaiming and Doll{\'a}r, Piotr},
booktitle = {CVPR},
year = {2020}
}
pycls is released under the MIT license. Please see the LICENSE file for more information.