OpenMMLab Pre-training Toolbox and Benchmark
 
 
 
 
Go to file
Zhiliang Peng 18f6bb0b10
[Feature] Implement the conformer backbone. (#494)
* implement the conformer

* format code style

* format code style

* reuse the TransformerEncoderLayer in the vision_transformer.py

* Modify variable name

* delete unused params

* Remove warning info in Conformer head since it already exists in
Conformer.

* Rename some variables

* Add unit tests

* Use `getattr` instead of `get_submodule`.

* Remove some useless layers

* Refactor conformer and add configs

* Update configs and add metafile.

* Fix unit tests

* Update README

Co-authored-by: mzr1996 <mzr1996@163.com>
2021-12-07 14:00:17 +08:00
.circleci [CI] Use CircleCI to do unit tests. (#567) 2021-11-30 14:22:02 +08:00
.dev_scripts/benchmark_regression [Improvement] Rename config files according to the config name standard. (#508) 2021-11-19 14:20:35 +08:00
.github [CI] Skip build CI if only configs or docs modification. (#575) 2021-12-02 16:05:10 +08:00
configs [Feature] Implement the conformer backbone. (#494) 2021-12-07 14:00:17 +08:00
demo [Docs] Add Copyright information. (#413) 2021-08-17 19:52:42 +08:00
docker Bump version to v0.18.0 (#569) 2021-11-30 19:04:38 +08:00
docs [Feature] Implement the conformer backbone. (#494) 2021-12-07 14:00:17 +08:00
docs_zh-CN [Docs] Add analysis&misc docs (#525) 2021-12-07 11:27:34 +08:00
mmcls [Feature] Implement the conformer backbone. (#494) 2021-12-07 14:00:17 +08:00
requirements [Docs] Fix docs build dependency. (#584) 2021-12-07 11:16:33 +08:00
resources Add README 2020-07-12 00:06:54 +08:00
tests [Feature] Implement the conformer backbone. (#494) 2021-12-07 14:00:17 +08:00
tools [Docs] Add analysis&misc docs (#525) 2021-12-07 11:27:34 +08:00
.gitattributes Add .gitattributes 2021-12-07 11:55:58 +08:00
.gitignore [Enhance] Improve downstream repositories compatibility (#421) 2021-09-08 10:38:57 +08:00
.pre-commit-config.yaml [CI] Use CircleCI to do unit tests. (#567) 2021-11-30 14:22:02 +08:00
.readthedocs.yml Support output pdf version readthedocs document. (#382) 2021-07-31 14:11:50 +08:00
CITATION.cff [Docs] Add `CITATION.cff` (#428) 2021-09-01 17:07:27 +08:00
LICENSE [Docs] Add Copyright information. (#413) 2021-08-17 19:52:42 +08:00
MANIFEST.in [Feature] Support mim (#376) 2021-07-27 17:58:04 +08:00
README.md [Docs] Fix docs build dependency. (#584) 2021-12-07 11:16:33 +08:00
README_zh-CN.md [Docs] Fix docs build dependency. (#584) 2021-12-07 11:16:33 +08:00
model-index.yml [Feature] Implement the conformer backbone. (#494) 2021-12-07 14:00:17 +08:00
requirements.txt workflow: modify build, add deploy (#61) 2020-10-10 22:15:50 +08:00
setup.cfg [Docs] Fix docs build dependency. (#584) 2021-12-07 11:16:33 +08:00
setup.py [Docs] Add `CITATION.cff` (#428) 2021-09-01 17:07:27 +08:00

README.md

Build Status Documentation Status codecov license

Introduction

English | 简体中文

MMClassification is an open source image classification toolbox based on PyTorch. It is a part of the OpenMMLab project.

Documentation: https://mmclassification.readthedocs.io/en/latest/

demo

Major features

  • Various backbones and pretrained models
  • Bag of training tricks
  • Large-scale training configs
  • High efficiency and extensibility

License

This project is released under the Apache 2.0 license.

Changelog

v0.18.0 was released in 30/11/2021.

Highlights of the new version:

  • Support MLP-Mixer backbone and provide pre-trained checkpoints.
  • Add a tool to visualize the learning rate curve of the training phase. Welcome to use with the tutorial!

v0.17.0 was released in 29/10/2021.

Highlights of this version:

  • Support Tokens-to-Token ViT backbone and Res2Net backbone. Welcome to use!
  • Support ImageNet21k dataset.
  • Add a pipeline visualization tool. Try it with the tutorials!

Please refer to changelog.md for more details and other release history.

Benchmark and model zoo

Results and models are available in the model zoo.

Supported backbones:

  • VGG
  • ResNet
  • ResNeXt
  • SE-ResNet
  • SE-ResNeXt
  • RegNet
  • ShuffleNetV1
  • ShuffleNetV2
  • MobileNetV2
  • MobileNetV3
  • Swin-Transformer
  • RepVGG
  • Vision-Transformer
  • Transformer-in-Transformer
  • Res2Net
  • MLP-Mixer
  • DeiT
  • Conformer
  • EfficientNet

Installation

Please refer to install.md for installation and dataset preparation.

Getting Started

Please see getting_started.md for the basic usage of MMClassification. There are also tutorials:

Colab tutorials are also provided. To learn about MMClassification Python API, you may preview the notebook here or directly run on Colab. To learn about MMClassification shell tools, you may preview the notebook here or directly run on Colab.

Citation

If you find this project useful in your research, please consider cite:

@misc{2020mmclassification,
    title={OpenMMLab's Image Classification Toolbox and Benchmark},
    author={MMClassification Contributors},
    howpublished = {\url{https://github.com/open-mmlab/mmclassification}},
    year={2020}
}

Contributing

We appreciate all contributions to improve MMClassification. Please refer to CONTRUBUTING.md for the contributing guideline.

Acknowledgement

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.

Projects in OpenMMLab

  • MMCV: OpenMMLab foundational library for computer vision.
  • MIM: MIM Installs OpenMMLab Packages.
  • MMClassification: OpenMMLab image classification toolbox and benchmark.
  • MMDetection: OpenMMLab detection toolbox and benchmark.
  • MMDetection3D: OpenMMLab's next-generation platform for general 3D object detection.
  • MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
  • MMAction2: OpenMMLab's next-generation action understanding toolbox and benchmark.
  • MMTracking: OpenMMLab video perception toolbox and benchmark.
  • MMPose: OpenMMLab pose estimation toolbox and benchmark.
  • MMEditing: OpenMMLab image and video editing toolbox.
  • MMOCR: OpenMMLab toolbox for text detection, recognition and understanding.
  • MMGeneration: OpenMMlab toolkit for generative models.
  • MMFlow OpenMMLab optical flow toolbox and benchmark.
  • MMFewShot: OpenMMLab FewShot Learning Toolbox and Benchmark.
  • MMHuman3D: OpenMMLab 3D Human Parametric Model Toolbox and Benchmark.