2020-07-08 12:27:26 +08:00
< div align = "center" >
2022-01-22 10:36:39 +08:00
2020-07-08 12:27:26 +08:00
< img src = "resources/mmcls-logo.png" width = "600" / >
2022-01-22 10:36:39 +08:00
< div > < / div >
< div align = "center" >
< b > < font size = "5" > OpenMMLab website< / font > < / b >
< sup >
< a href = "https://openmmlab.com" >
< i > < font size = "4" > HOT< / font > < / i >
< / a >
< / sup >
< b > < font size = "5" > OpenMMLab platform< / font > < / b >
< sup >
< a href = "https://platform.openmmlab.com" >
< i > < font size = "4" > TRY IT OUT< / font > < / i >
< / a >
< / sup >
< / div >
< div > < / div >
[](https://pypi.org/project/mmcls)
[](https://mmclassification.readthedocs.io/en/latest/)
[](https://github.com/open-mmlab/mmclassification/actions)
[](https://codecov.io/gh/open-mmlab/mmclassification)
[](https://github.com/open-mmlab/mmclassification/blob/master/LICENSE)
[](https://github.com/open-mmlab/mmclassification/issues)
[](https://github.com/open-mmlab/mmclassification/issues)
[📘 Documentation ](https://mmclassification.readthedocs.io/en/latest/ ) |
[🛠️ Installation ](https://mmclassification.readthedocs.io/en/latest/install.html ) |
[👀 Model Zoo ](https://mmclassification.readthedocs.io/en/latest/model_zoo.html ) |
[🆕 Update News ](https://mmclassification.readthedocs.io/en/latest/changelog.html ) |
[🤔 Reporting Issues ](https://github.com/open-mmlab/mmclassification/issues/new/choose )
2020-07-08 12:27:26 +08:00
2022-01-22 10:36:39 +08:00
< / div >
2020-07-13 12:55:34 +08:00
2020-07-08 12:27:26 +08:00
## Introduction
2021-04-26 13:58:18 +08:00
English | [简体中文 ](/README_zh-CN.md )
2020-07-08 12:27:26 +08:00
MMClassification is an open source image classification toolbox based on PyTorch. It is
2021-04-14 21:22:37 +08:00
a part of the [OpenMMLab ](https://openmmlab.com/ ) project.
2020-07-13 12:55:34 +08:00
2022-01-22 10:36:39 +08:00
The master branch works with **PyTorch 1.5+** .
2020-07-13 12:55:34 +08:00
2022-01-22 10:36:39 +08:00
< div align = "center" >
< img src = "https://user-images.githubusercontent.com/9102141/87268895-3e0d0780-c4fe-11ea-849e-6140b7e0d4de.gif" width = "70%" / >
< / div >
2020-07-08 12:27:26 +08:00
### Major features
- Various backbones and pretrained models
- Bag of training tricks
- Large-scale training configs
- High efficiency and extensibility
2021-12-31 12:55:47 +08:00
- Powerful toolkits
2020-07-08 12:27:26 +08:00
2022-01-22 10:36:39 +08:00
## What's new
2020-12-31 16:41:45 +08:00
2022-01-31 11:51:49 +08:00
v0.20.0 was released in 30/1/2022.
Highlights of the new version:
- Support **K-fold cross-validation** . The tutorial will be released later.
- Support **HRNet** , **ConvNeXt** , **Twins** and **EfficientNet** .
- Support model conversion from PyTorch to **Core ML** by a tool.
2021-12-31 12:55:47 +08:00
v0.19.0 was released in 31/12/2021.
Highlights of the new version:
- The **feature extraction** function has been enhanced. See [#593 ](https://github.com/open-mmlab/mmclassification/pull/593 ) for more details.
- Provide the high-acc **ResNet-50** training settings from [*ResNet strikes back* ](https://arxiv.org/abs/2110.00476 ).
- Reproduce the training accuracy of **T2T-ViT** & **RegNetX** , and provide self-training checkpoints.
- Support **DeiT** & **Conformer** backbone and checkpoints.
- Provide a **CAM visualization** tool based on [pytorch-grad-cam ](https://github.com/jacobgil/pytorch-grad-cam ), and detailed [user guide ](https://mmclassification.readthedocs.io/en/latest/tools/visualization.html#class-activation-map-visualization )!
2021-12-15 10:34:34 +08:00
Please refer to [changelog.md ](docs/en/changelog.md ) for more details and other release history.
2020-12-31 16:41:45 +08:00
2022-01-22 10:36:39 +08:00
## Installation
Please refer to [install.md ](https://mmclassification.readthedocs.io/en/latest/install.html ) for installation and dataset preparation.
## Getting Started
Please see [Getting Started ](https://mmclassification.readthedocs.io/en/latest/getting_started.html ) for the basic usage of MMClassification. There are also tutorials:
- [Learn about Configs ](https://mmclassification.readthedocs.io/en/latest/tutorials/config.html )
- [Fine-tune Models ](https://mmclassification.readthedocs.io/en/latest/tutorials/finetune.html )
- [Add New Dataset ](https://mmclassification.readthedocs.io/en/latest/tutorials/new_dataset.html )
- [Customizie Data Pipeline ](https://mmclassification.readthedocs.io/en/latest/tutorials/data_pipeline.html )
- [Add New Modules ](https://mmclassification.readthedocs.io/en/latest/tutorials/new_modules.html )
- [Customizie Schedule ](https://mmclassification.readthedocs.io/en/latest/tutorials/schedule.html )
- [Customizie Runtime Settings ](https://mmclassification.readthedocs.io/en/latest/tutorials/runtime.html )
Colab tutorials are also provided:
- Learn about MMClassification **Python API** : [Preview the notebook ](https://github.com/open-mmlab/mmclassification/blob/master/docs/en/tutorials/MMClassification_python.ipynb ) or directly [run on Colab ](https://colab.research.google.com/github/open-mmlab/mmclassification/blob/master/docs/en/tutorials/MMClassification_python.ipynb ).
- Learn about MMClassification **CLI tools** : [Preview the notebook ](https://github.com/open-mmlab/mmclassification/blob/master/docs/en/tutorials/MMClassification_tools.ipynb ) or directly [run on Colab ](https://colab.research.google.com/github/open-mmlab/mmclassification/blob/master/docs/en/tutorials/MMClassification_tools.ipynb ).
## Model zoo
2020-07-08 12:27:26 +08:00
2022-01-04 11:38:05 +08:00
Results and models are available in the [model zoo ](https://mmclassification.readthedocs.io/en/latest/model_zoo.html ).
2020-07-08 12:27:26 +08:00
2021-12-31 12:55:47 +08:00
< details open >
< summary > Supported backbones< / summary >
- [x] [VGG ](https://github.com/open-mmlab/mmclassification/tree/master/configs/vgg )
- [x] [ResNet ](https://github.com/open-mmlab/mmclassification/tree/master/configs/resnet )
- [x] [ResNeXt ](https://github.com/open-mmlab/mmclassification/tree/master/configs/resnext )
- [x] [SE-ResNet ](https://github.com/open-mmlab/mmclassification/tree/master/configs/seresnet )
- [x] [SE-ResNeXt ](https://github.com/open-mmlab/mmclassification/tree/master/configs/seresnet )
- [x] [RegNet ](https://github.com/open-mmlab/mmclassification/tree/master/configs/repvgg )
- [x] [ShuffleNetV1 ](https://github.com/open-mmlab/mmclassification/tree/master/configs/shufflenet_v1 )
- [x] [ShuffleNetV2 ](https://github.com/open-mmlab/mmclassification/tree/master/configs/shufflenet_v2 )
- [x] [MobileNetV2 ](https://github.com/open-mmlab/mmclassification/tree/master/configs/mobilenet_v2 )
- [x] [MobileNetV3 ](https://github.com/open-mmlab/mmclassification/tree/master/configs/mobilenet_v3 )
- [x] [Swin-Transformer ](https://github.com/open-mmlab/mmclassification/tree/master/configs/swin_transformer )
- [x] [RepVGG ](https://github.com/open-mmlab/mmclassification/tree/master/configs/repvgg )
- [x] [Vision-Transformer ](https://github.com/open-mmlab/mmclassification/tree/master/configs/vision_transformer )
- [x] [Transformer-in-Transformer ](https://github.com/open-mmlab/mmclassification/tree/master/configs/tnt )
- [x] [Res2Net ](https://github.com/open-mmlab/mmclassification/tree/master/configs/res2net )
- [x] [MLP-Mixer ](https://github.com/open-mmlab/mmclassification/tree/master/configs/mlp_mixer )
- [x] [DeiT ](https://github.com/open-mmlab/mmclassification/tree/master/configs/deit )
- [x] [Conformer ](https://github.com/open-mmlab/mmclassification/tree/master/configs/conformer )
- [x] [T2T-ViT ](https://github.com/open-mmlab/mmclassification/tree/master/configs/t2t_vit )
2022-01-27 10:25:05 +08:00
- [x] [Twins ](https://github.com/open-mmlab/mmclassification/tree/master/configs/twins )
2022-01-25 12:14:17 +08:00
- [x] [EfficientNet ](https://github.com/open-mmlab/mmclassification/tree/master/configs/efficientnet )
2022-01-28 10:36:45 +08:00
- [x] [ConvNeXt ](https://github.com/open-mmlab/mmclassification/tree/master/configs/convnext )
2022-01-28 10:54:14 +08:00
- [x] [HRNet ](https://github.com/open-mmlab/mmclassification/tree/master/configs/hrnet )
2021-12-31 12:55:47 +08:00
< / details >
2020-07-08 12:27:26 +08:00
2022-01-22 10:36:39 +08:00
## Contributing
2021-11-17 18:12:54 +08:00
2022-01-22 10:36:39 +08:00
We appreciate all contributions to improve MMClassification.
Please refer to [CONTRUBUTING.md ](https://mmclassification.readthedocs.io/en/latest/community/CONTRIBUTING.html ) for the contributing guideline.
2021-11-17 18:12:54 +08:00
2022-01-22 10:36:39 +08:00
## Acknowledgement
2022-01-04 11:38:05 +08:00
2022-01-22 10:36:39 +08:00
MMClassification is an open source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks.
We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new classifiers.
2020-07-08 12:27:26 +08:00
2021-04-26 13:58:18 +08:00
## Citation
If you find this project useful in your research, please consider cite:
```BibTeX
@misc {2020mmclassification,
title={OpenMMLab's Image Classification Toolbox and Benchmark},
author={MMClassification Contributors},
howpublished = {\url{https://github.com/open-mmlab/mmclassification}},
year={2020}
}
```
2022-01-22 10:36:39 +08:00
## License
2020-07-08 12:27:26 +08:00
2022-01-22 10:36:39 +08:00
This project is released under the [Apache 2.0 license ](LICENSE ).
2021-04-16 19:07:17 +08:00
## Projects in OpenMMLab
- [MMCV ](https://github.com/open-mmlab/mmcv ): OpenMMLab foundational library for computer vision.
2021-07-27 17:58:04 +08:00
- [MIM ](https://github.com/open-mmlab/mim ): MIM Installs OpenMMLab Packages.
2021-04-16 19:07:17 +08:00
- [MMClassification ](https://github.com/open-mmlab/mmclassification ): OpenMMLab image classification toolbox and benchmark.
- [MMDetection ](https://github.com/open-mmlab/mmdetection ): OpenMMLab detection toolbox and benchmark.
- [MMDetection3D ](https://github.com/open-mmlab/mmdetection3d ): OpenMMLab's next-generation platform for general 3D object detection.
- [MMSegmentation ](https://github.com/open-mmlab/mmsegmentation ): OpenMMLab semantic segmentation toolbox and benchmark.
- [MMAction2 ](https://github.com/open-mmlab/mmaction2 ): OpenMMLab's next-generation action understanding toolbox and benchmark.
- [MMTracking ](https://github.com/open-mmlab/mmtracking ): OpenMMLab video perception toolbox and benchmark.
- [MMPose ](https://github.com/open-mmlab/mmpose ): OpenMMLab pose estimation toolbox and benchmark.
- [MMEditing ](https://github.com/open-mmlab/mmediting ): OpenMMLab image and video editing toolbox.
- [MMOCR ](https://github.com/open-mmlab/mmocr ): OpenMMLab toolbox for text detection, recognition and understanding.
2021-04-26 13:58:18 +08:00
- [MMGeneration ](https://github.com/open-mmlab/mmgeneration ): OpenMMlab toolkit for generative models.
2021-11-19 11:33:17 +08:00
- [MMFlow ](https://github.com/open-mmlab/mmflow ) OpenMMLab optical flow toolbox and benchmark.
2021-11-29 19:00:51 +08:00
- [MMFewShot ](https://github.com/open-mmlab/mmfewshot ): OpenMMLab FewShot Learning Toolbox and Benchmark.
2021-12-07 11:16:33 +08:00
- [MMHuman3D ](https://github.com/open-mmlab/mmhuman3d ): OpenMMLab 3D Human Parametric Model Toolbox and Benchmark.
2022-01-04 11:38:05 +08:00
- [MMSelfSup ](https://github.com/open-mmlab/mmselfsup ): OpenMMLab self-supervised learning toolbox and benchmark.
- [MMRazor ](https://github.com/open-mmlab/mmrazor ): OpenMMLab Model Compression Toolbox and Benchmark.
- [MMDeploy ](https://github.com/open-mmlab/mmdeploy ): OpenMMLab Model Deployment Framework.