OpenMMLab Model Compression Toolbox and Benchmark.
 
 
 
Go to file
whcao 86c61539b1
[Feature] PyTorch version of `PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient`. (#304)
* add pkd

* add pytest for pkd

* fix cfg

* WIP: support fcos3d

* WIP: support fcos3d pkd

* support mmdet3d

* fix cfgs

* change eps to 1e-6 and add some comments

* fix docstring

* fix cfg

* add assert

* add type hint

* WIP: add readme and metafile

* fix readme

* update metafiles and readme

* fix metafile

* fix pipeline figure
2022-10-26 19:18:20 +08:00
.circleci fix ci (#284) 2022-10-10 10:06:57 +08:00
.dev_scripts Regression Benchmark (#271) 2022-09-01 11:54:18 +08:00
.github fix ci (#284) 2022-10-10 10:06:57 +08:00
configs [Feature] PyTorch version of `PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient`. (#304) 2022-10-26 19:18:20 +08:00
docker first commit 2021-12-23 02:48:00 +08:00
docs [Doc] add documents about pruning. (#313) 2022-10-26 13:27:48 +08:00
mmrazor [Feature] PyTorch version of `PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient`. (#304) 2022-10-26 19:18:20 +08:00
requirements Update requirements (#319) 2022-10-13 17:24:15 +08:00
resources [Docs] Reformat README (#169) 2022-06-09 09:03:00 +08:00
tests [Feature] PyTorch version of `PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient`. (#304) 2022-10-26 19:18:20 +08:00
tools [Feature]Feature map visualization (#293) 2022-10-26 13:26:20 +08:00
.gitignore fix symlink error on windows (#41) 2022-01-06 15:35:14 +08:00
.pre-commit-config.yaml Refactor backbone 2022-07-15 23:04:13 +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
MANIFEST.in [Installation] Add MANIFEST.in (#173) 2022-06-09 09:04:37 +08:00
README.md [Docs]Add MMYOLO projects link (#334) 2022-10-24 11:45:35 +08:00
README_zh-CN.md [Docs]Add MMYOLO projects link (#334) 2022-10-24 11:45:35 +08:00
model-index.yml [Feature] PyTorch version of `PKD: General Distillation Framework for Object Detectors via Pearson Correlation Coefficient`. (#304) 2022-10-26 19:18:20 +08:00
requirements.txt first commit 2021-12-23 02:48:00 +08:00
setup.cfg Upgrade isort in pre-commit hook (#70) 2022-02-10 10:02:02 +08:00
setup.py Add mim to extras_require in setup.py (#180) 2022-06-15 19:19:35 +08:00

README.md

 
OpenMMLab website HOT      OpenMMLab platform TRY IT OUT
 

PyPI docs badge codecov license open issues issue resolution

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

English | 简体中文

Introduction

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

  • Neural Architecture Search (NAS)
  • Pruning
  • Knowledge Distillation (KD)
  • Quantization (come soon)

It is a part of the OpenMMLab project.

Major features:

  • Compatibility

    MMRazor can be easily applied to various projects in OpenMMLab, due to the similar architecture design of OpenMMLab as well as the decoupling of slimming algorithms and vision tasks.

  • Flexibility

    Different algorithms, e.g., NAS, pruning and KD, can be incorporated in a plug-n-play manner to build a more powerful system.

  • Convenience

    With better modular design, developers can implement new model compression algorithms with only a few codes, or even by simply modifying config files.

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


What's new

MMRazor v1.0.0rc0 was released in 1/9/2022.

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 algorithms:

Neural Architecture Search
Pruning
Knowledge Distillation

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

  • 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.
  • MMRotate: OpenMMLab rotated object detection toolbox and benchmark.
  • MMYOLO: OpenMMLab YOLO series toolbox and benchmark.
  • MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
  • MMOCR: OpenMMLab text detection, recognition, and understanding toolbox.
  • MMPose: OpenMMLab pose estimation 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.
  • MMFewShot: OpenMMLab fewshot learning toolbox and benchmark.
  • MMAction2: OpenMMLab's next-generation action understanding toolbox and benchmark.
  • MMTracking: OpenMMLab video perception toolbox and benchmark.
  • MMFlow: OpenMMLab optical flow toolbox and benchmark.
  • MMEditing: OpenMMLab image and video editing toolbox.
  • MMGeneration: OpenMMLab image and video generative models toolbox.
  • MMDeploy: OpenMMLab model deployment framework.