2020-07-08 12:27:26 +08:00
< div align = "center" >
2022-01-22 10:36:39 +08:00
2022-06-02 15:22:01 +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 >
2022-06-02 15:22:01 +08:00
[](https://pypi.org/project/mmcls)
2022-08-31 23:57:51 +08:00
[](https://mmclassification.readthedocs.io/en/1.x/)
2022-06-02 15:22:01 +08:00
[](https://github.com/open-mmlab/mmclassification/actions)
2022-08-31 23:57:51 +08:00
[](https://codecov.io/gh/open-mmlab/mmclassification)
[](https://github.com/open-mmlab/mmclassification/blob/1.x/LICENSE)
2022-06-02 15:22:01 +08:00
[](https://github.com/open-mmlab/mmclassification/issues)
[](https://github.com/open-mmlab/mmclassification/issues)
2022-01-22 10:36:39 +08:00
2022-08-31 23:57:51 +08:00
[📘 Documentation ](https://mmclassification.readthedocs.io/en/1.x/ ) |
[🛠️ Installation ](https://mmclassification.readthedocs.io/en/1.xget_started.html ) |
[👀 Model Zoo ](https://mmclassification.readthedocs.io/en/1.x/modelzoo_statistics.html ) |
[🆕 Update News ](https://mmclassification.readthedocs.io/en/1.x/notes/changelog.html ) |
2022-06-02 15:22:01 +08:00
[🤔 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-08-31 23:57:51 +08:00
The `1.x` branch works with **PyTorch 1.6+** .
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-10-12 16:52:31 +08:00
v1.0.0rc2 was released in 12/10/2022.
- Support Deit-3 backbone.
- Fix MMEngine version requirements.
2022-09-30 17:35:44 +08:00
v1.0.0rc1 was released in 30/9/2022.
- Support MViT, EdgeNeXt, Swin-Transformer V2, EfficientFormer and MobileOne.
- Support BEiT type transformer layer.
2022-08-31 23:57:51 +08:00
v1.0.0rc0 was released in 31/8/2022.
2022-06-02 15:22:01 +08:00
2022-08-31 23:57:51 +08:00
This release introduced a brand new and flexible training & test engine, but it's still in progress. Welcome
to try according to [the documentation ](https://mmclassification.readthedocs.io/en/1.x/ ).
2022-05-01 21:58:33 +08:00
2022-08-31 23:57:51 +08:00
And there are some BC-breaking changes. Please check [the migration tutorial ](https://mmclassification.readthedocs.io/en/1.x/migration.html ).
2022-03-31 01:36:53 +08:00
2022-08-31 23:57:51 +08:00
The release candidate will last until the end of 2022, and during the release candidate, we will develop on the `1.x` branch. And we will still maintain 0.x version still at least the end of 2023.
2022-06-02 15:22:01 +08:00
2022-08-31 23:57:51 +08:00
Please refer to [changelog.md ](https://mmclassification.readthedocs.io/en/1.x/notes/changelog.html ) for more details and other release history.
2020-12-31 16:41:45 +08:00
2022-01-22 10:36:39 +08:00
## Installation
2022-03-30 19:16:45 +08:00
Below are quick steps for installation:
```shell
2022-08-31 23:57:51 +08:00
conda create -n open-mmlab python=3.8 pytorch==1.10.1 torchvision==0.11.2 cudatoolkit=11.3 -c pytorch -y
2022-03-30 19:16:45 +08:00
conda activate open-mmlab
2022-08-31 23:57:51 +08:00
pip install openmim
git clone -b 1.x https://github.com/open-mmlab/mmclassification.git
2022-03-30 19:16:45 +08:00
cd mmclassification
2022-08-31 23:57:51 +08:00
mim install -e .
2022-03-30 19:16:45 +08:00
```
2022-08-31 23:57:51 +08:00
Please refer to [install.md ](https://mmclassification.readthedocs.io/en/1.x/get_started.html ) for more detailed installation and dataset preparation.
2022-01-22 10:36:39 +08:00
2022-08-31 23:57:51 +08:00
## User Guides
2022-01-22 10:36:39 +08:00
2022-08-31 23:57:51 +08:00
We provided a series of tutorials about the basic usage of MMClassification for new users:
2022-01-22 10:36:39 +08:00
2022-08-31 23:57:51 +08:00
- [Inference with existing models ](https://mmclassification.readthedocs.io/en/1.x/user_guides/inference.html )
- [Prepare Dataset ](https://mmclassification.readthedocs.io/en/1.x/user_guides/dataset_prepare.html )
- [Training and Test ](https://mmclassification.readthedocs.io/en/1.x/user_guides/train_test.html )
- [Learn about Configs ](https://mmclassification.readthedocs.io/en/1.x/user_guides/config.html )
- [Fine-tune Models ](https://mmclassification.readthedocs.io/en/1.x/user_guides/finetune.html )
- [Analysis Tools ](https://mmclassification.readthedocs.io/en/1.x/user_guides/analysis.html )
- [Visualization Tools ](https://mmclassification.readthedocs.io/en/1.x/user_guides/visualization.html )
- [Other Useful Tools ](https://mmclassification.readthedocs.io/en/1.x/user_guides/useful_tools.html )
2022-01-22 10:36:39 +08:00
## Model zoo
2020-07-08 12:27:26 +08:00
2022-08-31 23:57:51 +08:00
Results and models are available in the [model zoo ](https://mmclassification.readthedocs.io/en/1.x/modelzoo_statistics.html ).
2020-07-08 12:27:26 +08:00
2021-12-31 12:55:47 +08:00
< details open >
< summary > Supported backbones< / summary >
2022-08-31 23:57:51 +08:00
- [x] [VGG ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/vgg )
- [x] [ResNet ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/resnet )
- [x] [ResNeXt ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/resnext )
- [x] [SE-ResNet ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/seresnet )
- [x] [SE-ResNeXt ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/seresnet )
- [x] [RegNet ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/regnet )
- [x] [ShuffleNetV1 ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/shufflenet_v1 )
- [x] [ShuffleNetV2 ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/shufflenet_v2 )
- [x] [MobileNetV2 ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/mobilenet_v2 )
- [x] [MobileNetV3 ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/mobilenet_v3 )
- [x] [Swin-Transformer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/swin_transformer )
2022-09-20 15:45:27 +08:00
- [x] [Swin-Transformer V2 ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/swin_transformer_v2 )
2022-08-31 23:57:51 +08:00
- [x] [RepVGG ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/repvgg )
- [x] [Vision-Transformer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/vision_transformer )
- [x] [Transformer-in-Transformer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/tnt )
- [x] [Res2Net ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/res2net )
- [x] [MLP-Mixer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/mlp_mixer )
- [x] [DeiT ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/deit )
2022-10-10 14:54:20 +08:00
- [x] [DeiT-3 ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/deit3 )
2022-08-31 23:57:51 +08:00
- [x] [Conformer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/conformer )
- [x] [T2T-ViT ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/t2t_vit )
- [x] [Twins ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/twins )
- [x] [EfficientNet ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/efficientnet )
2022-09-21 13:27:04 +08:00
- [x] [EdgeNeXt ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/edgenext )
2022-08-31 23:57:51 +08:00
- [x] [ConvNeXt ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/convnext )
- [x] [HRNet ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/hrnet )
- [x] [VAN ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/van )
- [x] [ConvMixer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/convmixer )
- [x] [CSPNet ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/cspnet )
- [x] [PoolFormer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/poolformer )
- [x] [Inception V3 ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/inception_v3 )
2022-09-16 11:55:10 +08:00
- [x] [MobileOne ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/mobileone )
2022-09-22 09:23:49 +08:00
- [x] [EfficientFormer ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/efficientformer )
- [x] [MViT ](https://github.com/open-mmlab/mmclassification/tree/1.x/configs/mvit )
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.
2022-08-31 23:57:51 +08:00
Please refer to [CONTRUBUTING.md ](https://mmclassification.readthedocs.io/en/1.x/notes/contribution_guide.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
2022-08-31 23:57:51 +08:00
- [MMEngine ](https://github.com/open-mmlab/mmengine ): OpenMMLab foundational library for training deep learning models.
2021-04-16 19:07:17 +08:00
- [MMCV ](https://github.com/open-mmlab/mmcv ): OpenMMLab foundational library for computer vision.
2022-03-02 18:57:12 +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.
2022-03-02 18:57:12 +08:00
- [MMRotate ](https://github.com/open-mmlab/mmrotate ): OpenMMLab rotated object detection toolbox and benchmark.
2021-04-16 19:07:17 +08:00
- [MMSegmentation ](https://github.com/open-mmlab/mmsegmentation ): OpenMMLab semantic segmentation toolbox and benchmark.
2022-03-02 18:57:12 +08:00
- [MMOCR ](https://github.com/open-mmlab/mmocr ): OpenMMLab text detection, recognition, and understanding toolbox.
- [MMPose ](https://github.com/open-mmlab/mmpose ): OpenMMLab pose estimation toolbox and benchmark.
- [MMHuman3D ](https://github.com/open-mmlab/mmhuman3d ): OpenMMLab 3D human parametric model toolbox and benchmark.
- [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.
- [MMFewShot ](https://github.com/open-mmlab/mmfewshot ): OpenMMLab fewshot learning toolbox and benchmark.
2021-04-16 19:07:17 +08:00
- [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.
2022-03-02 18:57:12 +08:00
- [MMFlow ](https://github.com/open-mmlab/mmflow ): OpenMMLab optical flow toolbox and benchmark.
2021-04-16 19:07:17 +08:00
- [MMEditing ](https://github.com/open-mmlab/mmediting ): OpenMMLab image and video editing toolbox.
2022-03-02 18:57:12 +08:00
- [MMGeneration ](https://github.com/open-mmlab/mmgeneration ): OpenMMLab image and video generative models toolbox.
- [MMDeploy ](https://github.com/open-mmlab/mmdeploy ): OpenMMLab model deployment framework.