OpenMMLab Model Compression Toolbox and Benchmark.
 
 
 
Go to file
whcao be4e8ed827
[Fix]Fix readme bug (#5)
* Base Framework (#24)

* Base Framework

* [Feature] Add loss

* [Feature] Add op (#4)

* [Feature] Add mutator (#3)

* [Feature] Add mutable (#2)

* [Feature] Add architecture (#1)

* [Docs] Add Docs (#6)

* add docs

* fix known_third_party

Co-authored-by: qiufeng <qiufeng3217@gmail.com>

* update docs (#12)

Co-authored-by: qiufeng <qiufeng3217@gmail.com>

* [Docs] Add README (#10)

* add readme

* refactor readme

* add logo

* update release time

Co-authored-by: qiufeng <qiufeng3217@gmail.com>

* [Docs] Add Resources (#11)

* add resources

* fix known_third_party

* fix known_third_party

* fix known_third_party

* refactor resources

Co-authored-by: qiufeng <qiufeng3217@gmail.com>

* add pytest (#18)

Co-authored-by: caoweihan <caoweihan@sensetime.com>

* add utils (#17)

Co-authored-by: caoweihan <caoweihan@sensetime.com>

* add distillers (#16)

Co-authored-by: caoweihan <caoweihan@sensetime.com>

* add pruners (#15)

Co-authored-by: caoweihan <caoweihan@sensetime.com>

* fix bug

* update docstring (#20)

* Prepare for open source (#23)

* update MMRazor description

* update Github action

* add Mircosoft copyright

* update requirements

* fix  a bug

* fix a typo

Co-authored-by: humu789 <humu@pjlab.org.cn>
Co-authored-by: humu789 <88702197+humu789@users.noreply.github.com>
Co-authored-by: qiufeng <44188071+wutongshenqiu@users.noreply.github.com>
Co-authored-by: qiufeng <qiufeng3217@gmail.com>
Co-authored-by: whcao <41630003+HIT-cwh@users.noreply.github.com>
Co-authored-by: caoweihan <caoweihan@sensetime.com>

* fix readme and pre-commit

* rename tutorials

* fix a bug

* pass lint

Co-authored-by: pppppM <67539920+pppppM@users.noreply.github.com>
Co-authored-by: humu789 <humu@pjlab.org.cn>
Co-authored-by: humu789 <88702197+humu789@users.noreply.github.com>
Co-authored-by: qiufeng <44188071+wutongshenqiu@users.noreply.github.com>
Co-authored-by: qiufeng <qiufeng3217@gmail.com>
Co-authored-by: caoweihan <caoweihan@sensetime.com>
2021-12-23 18:25:05 +08:00
.github [Fix] fix some typos (#6) 2021-12-23 18:01:52 +08:00
configs [Fix]Fix readme bug (#5) 2021-12-23 18:25:05 +08:00
docker first commit 2021-12-23 02:48:00 +08:00
docs/en [Fix]Fix readme bug (#5) 2021-12-23 18:25:05 +08:00
mmrazor [Fix]Fix readme bug (#5) 2021-12-23 18:25:05 +08:00
requirements Prepare for open source (#23) 2021-12-23 12:35:51 +08:00
resources [Docs] Add Resources (#11) 2021-12-23 10:36:02 +08:00
tests add pytest (#18) 2021-12-23 11:29:12 +08:00
tools Base Framework 2021-12-23 03:09:46 +08:00
.gitignore first commit 2021-12-23 02:48:00 +08:00
.pre-commit-config.yaml Prepare for open source (#23) 2021-12-23 12:35:51 +08:00
.readthedocs.yml first commit 2021-12-23 02:48:00 +08:00
LICENSE first commit 2021-12-23 02:48:00 +08:00
README.md [Fix]Fix readme bug (#5) 2021-12-23 18:25:05 +08:00
README_zh-CN.md [Fix]Fix readme bug (#5) 2021-12-23 18:25:05 +08:00
requirements.txt first commit 2021-12-23 02:48:00 +08:00
setup.cfg first commit 2021-12-23 02:48:00 +08:00
setup.py Prepare for open source (#23) 2021-12-23 12:35:51 +08:00

README.md


PyPI - Python Version PyPI docs badge codecov license issue resolution open issues

Documentation: https://mmrazor.readthedocs.io/

English | 简体中文

Introduction

MMRazor is an open source model compression toolbox based on PyTorch. It is a part of the OpenMMLab project.

Major features
  • All in one

    MMRazor includes Neural Architecture SearchNAS), Knowledge DistillationKD), Pruning, and Quantizationcoming soon). And it supports the combination of different types of algorithms.

  • General CV Model Compression ToolBox

    Thanks to OpenMMLab, the algorithms in MMRazor can be quickly applied to different CV tasks, making the development of model compression algorithms once and for all.

  • Decouple model and compression algorithm

    MMRazor has a variety of built-in automation mechanisms, allowing developers to implement model compression algorithms without modifying the raw model code, such as:

    • OP can be modified code-free.
    • Feature maps in the middle layers can be obtained code-free.
    • Automatically obtain and analyze the connection between nn.Module.
    • And More ...
  • Flexible and Modular Design

    We decompose the model compression algorithms into different components, making it much easier and more flexible to build a new algorithm by combining different components.

Below is an overview of MMRazor's design and implementation, please refer to tutorials for more details.


License

This project is released under the Apache 2.0 license.

Changelog

v0.1.0 was released in 12/23/2021.

Benchmark and model zoo

Results and models are available in the model zoo.

Installation

Please refer to get_started.md for installation.

Getting Started

Please refer to train.md and test.md for the basic usage of MMRazor. There are also tutorials:

Citation

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

@misc{2021mmrazor,
    title={OpenMMLab Model Compression Toolbox and Benchmark},
    author={MMRazor Contributors},
    howpublished = {\url{https://github.com/open-mmlab/mmrazor}},
    year={2021}
}

Contributing

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

Acknowledgement

MMRazor 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 model compression methods.

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 next-generation platform for general 3D object detection.
  • MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
  • MMAction2: OpenMMLab 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.
  • MMSelfSup: OpenMMLab self-supervised learning Toolbox and Benchmark.
  • MMRazor: OpenMMLab Model Compression Toolbox and Benchmark.