Home

Awesome

<div align="center"> <img src="resources/mmrazor-logo.png" width="600"/> <div>&nbsp;</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> &nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;</div> <!--算法库 Badges-->

PyPI docs badge codecov license open issues issue resolution

<!--快速链接--> <!--Note:请根据各算法库自身情况设置项目和链接-->

📘Documentation | 🛠️Installation | 👀Model Zoo | 🤔Reporting Issues

</div> <!--中/英 文档切换--> <div align="center">

English | 简体中文

<div align="center"> <a href="https://openmmlab.medium.com/" style="text-decoration:none;"> <img src="https://user-images.githubusercontent.com/25839884/218352562-cdded397-b0f3-4ca1-b8dd-a60df8dca75b.png" width="3%" alt="" /></a> <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> <a href="https://discord.gg/raweFPmdzG" style="text-decoration:none;"> <img src="https://user-images.githubusercontent.com/25839884/218347213-c080267f-cbb6-443e-8532-8e1ed9a58ea9.png" width="3%" alt="" /></a> <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> <a href="https://twitter.com/OpenMMLab" style="text-decoration:none;"> <img src="https://user-images.githubusercontent.com/25839884/218346637-d30c8a0f-3eba-4699-8131-512fb06d46db.png" width="3%" alt="" /></a> <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> <a href="https://www.youtube.com/openmmlab" style="text-decoration:none;"> <img src="https://user-images.githubusercontent.com/25839884/218346691-ceb2116a-465a-40af-8424-9f30d2348ca9.png" width="3%" alt="" /></a> </div> </div>

:star: MMRazor for Large Models is Available Now! Please refer to MMRazorLarge

Introduction

MMRazor is a model compression toolkit for model slimming and AutoML, which includes 4 mainstream technologies:

It is a part of the OpenMMLab project.

Major features:

About MMRazor's design and implementation, please refer to tutorials for more details.

Latest Updates

The default branch is now main and the code on the branch has been upgraded to v1.0.0. The old master branch code now exists on the 0.x branch

MMRazor v1.0.0 was released in 2023-4-24, Major updates from 1.0.0rc2 include:

  1. MMRazor quantization is released.
  2. Add a new pruning algorithm named GroupFisher.
  3. Support distilling rtmdet with MMRazor.

To know more about the updates in MMRazor 1.0, please refer to Changelog for more details!

Benchmark and model zoo

Results and models are available in the model zoo.

Supported algorithms:

<details open> <summary>Neural Architecture Search</summary> </details> <details open> <summary>Pruning</summary> </details> <details open> <summary>Knowledge Distillation</summary> </details> <details open> <summary>Quantization</summary> </details>

Installation

MMRazor depends on PyTorch, MMCV and MMEngine.

Please refer to installation.md for more detailed instruction.

Getting Started

Please refer to user guides for the basic usage of MMRazor. There are also advanced guides:

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.

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}
}

License

This project is released under the Apache 2.0 license.

Projects in OpenMMLab