|
| 1 | +<div align="center"> |
| 2 | + <img src="resources/mmrotate-logo.png" width="450"/> |
| 3 | + <div> </div> |
| 4 | + <div align="center"> |
| 5 | + <b><font size="5">OpenMMLab website</font></b> |
| 6 | + <sup> |
| 7 | + <a href="https://openmmlab.com"> |
| 8 | + <i><font size="4">HOT</font></i> |
| 9 | + </a> |
| 10 | + </sup> |
| 11 | + |
| 12 | + <b><font size="5">OpenMMLab platform</font></b> |
| 13 | + <sup> |
| 14 | + <a href="https://platform.openmmlab.com"> |
| 15 | + <i><font size="4">TRY IT OUT</font></i> |
| 16 | + </a> |
| 17 | + </sup> |
| 18 | + </div> |
| 19 | + <div> </div> |
| 20 | + |
| 21 | +[](https://pypi.org/project/mmrotate) |
| 22 | +[](https://mmrotate.readthedocs.io/en/1.x/) |
| 23 | +[](https://github.com/open-mmlab/mmrotate/actions) |
| 24 | +[](https://codecov.io/gh/open-mmlab/mmrotate) |
| 25 | +[](https://github.com/open-mmlab/mmrotate/blob/main/LICENSE) |
| 26 | +[](https://github.com/open-mmlab/mmrotate/issues) |
| 27 | +[](https://github.com/open-mmlab/mmrotate/issues) |
| 28 | + |
| 29 | +[📘Documentation](https://mmrotate.readthedocs.io/en/1.x/) | |
| 30 | +[🛠️Installation](https://mmrotate.readthedocs.io/en/1.x/install.html) | |
| 31 | +[👀Model Zoo](https://mmrotate.readthedocs.io/en/1.x/model_zoo.html) | |
| 32 | +[🆕Update News](https://mmrotate.readthedocs.io/en/1.x/notes/changelog.html) | |
| 33 | +[🚀Ongoing Projects](https://github.com/open-mmlab/mmrotate/projects) | |
| 34 | +[🤔Reporting Issues](https://github.com/open-mmlab/mmrotate/issues/new/choose) |
| 35 | + |
| 36 | +</div> |
| 37 | + |
| 38 | +<!--中/英 文档切换--> |
| 39 | + |
| 40 | +<div align="center"> |
| 41 | + |
| 42 | +English | [简体中文](README_zh-CN.md) |
| 43 | + |
| 44 | +</div> |
| 45 | + |
| 46 | +<div align="center"> |
| 47 | + <a href="https://openmmlab.medium.com/" style="text-decoration:none;"> |
| 48 | + <img src="https://user-images.githubusercontent.com/25839884/219255827-67c1a27f-f8c5-46a9-811d-5e57448c61d1.png" width="3%" alt="" /></a> |
| 49 | + <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> |
| 50 | + <a href="https://discord.com/channels/1037617289144569886/1046608014234370059" style="text-decoration:none;"> |
| 51 | + <img src="https://user-images.githubusercontent.com/25839884/218347213-c080267f-cbb6-443e-8532-8e1ed9a58ea9.png" width="3%" alt="" /></a> |
| 52 | + <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> |
| 53 | + <a href="https://twitter.com/OpenMMLab" style="text-decoration:none;"> |
| 54 | + <img src="https://user-images.githubusercontent.com/25839884/218346637-d30c8a0f-3eba-4699-8131-512fb06d46db.png" width="3%" alt="" /></a> |
| 55 | + <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> |
| 56 | + <a href="https://www.youtube.com/openmmlab" style="text-decoration:none;"> |
| 57 | + <img src="https://user-images.githubusercontent.com/25839884/218346691-ceb2116a-465a-40af-8424-9f30d2348ca9.png" width="3%" alt="" /></a> |
| 58 | + <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> |
| 59 | + <a href="https://space.bilibili.com/1293512903" style="text-decoration:none;"> |
| 60 | + <img src="https://user-images.githubusercontent.com/25839884/219026751-d7d14cce-a7c9-4e82-9942-8375fca65b99.png" width="3%" alt="" /></a> |
| 61 | + <img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" /> |
| 62 | + <a href="https://www.zhihu.com/people/openmmlab" style="text-decoration:none;"> |
| 63 | + <img src="https://user-images.githubusercontent.com/25839884/219026120-ba71e48b-6e94-4bd4-b4e9-b7d175b5e362.png" width="3%" alt="" /></a> |
| 64 | +</div> |
| 65 | + |
| 66 | +## Introduction |
| 67 | + |
| 68 | +MMRotate is an open-source toolbox for rotated object detection based on PyTorch. |
| 69 | +It is a part of the [OpenMMLab project](https://github.com/open-mmlab). |
| 70 | + |
| 71 | +The master branch works with **PyTorch 1.6+**. |
| 72 | + |
| 73 | +https://user-images.githubusercontent.com/10410257/154433305-416d129b-60c8-44c7-9ebb-5ba106d3e9d5.MP4 |
| 74 | + |
| 75 | +<details open> |
| 76 | +<summary><b>Major Features</b></summary> |
| 77 | + |
| 78 | +- **Support multiple angle representations** |
| 79 | + |
| 80 | + MMRotate provides three mainstream angle representations to meet different paper settings. |
| 81 | + |
| 82 | +- **Modular Design** |
| 83 | + |
| 84 | + We decompose the rotated object detection framework into different components, |
| 85 | + which makes it much easy and flexible to build a new model by combining different modules. |
| 86 | + |
| 87 | +- **Strong baseline and State of the art** |
| 88 | + |
| 89 | + The toolbox provides strong baselines and state-of-the-art methods in rotated object detection. |
| 90 | + |
| 91 | +</details> |
| 92 | + |
| 93 | +## What's New |
| 94 | + |
| 95 | +### Highlight |
| 96 | + |
| 97 | +We are excited to announce our latest work on real-time object recognition tasks, **RTMDet**, a family of fully convolutional single-stage detectors. RTMDet not only achieves the best parameter-accuracy trade-off on object detection from tiny to extra-large model sizes but also obtains new state-of-the-art performance on instance segmentation and rotated object detection tasks. Details can be found in the [technical report](https://arxiv.org/abs/2212.07784). Pre-trained models are [here](configs/rotated_rtmdet). |
| 98 | + |
| 99 | +[](https://paperswithcode.com/sota/real-time-instance-segmentation-on-mscoco?p=rtmdet-an-empirical-study-of-designing-real) |
| 100 | +[](https://paperswithcode.com/sota/object-detection-in-aerial-images-on-dota-1?p=rtmdet-an-empirical-study-of-designing-real) |
| 101 | +[](https://paperswithcode.com/sota/object-detection-in-aerial-images-on-hrsc2016?p=rtmdet-an-empirical-study-of-designing-real) |
| 102 | + |
| 103 | +| Task | Dataset | AP | FPS(TRT FP16 BS1 3090) | |
| 104 | +| ------------------------ | ------- | ------------------------------------ | ---------------------- | |
| 105 | +| Object Detection | COCO | 52.8 | 322 | |
| 106 | +| Instance Segmentation | COCO | 44.6 | 188 | |
| 107 | +| Rotated Object Detection | DOTA | 78.9(single-scale)/81.3(multi-scale) | 121 | |
| 108 | + |
| 109 | +<div align=center> |
| 110 | +<img src="https://user-images.githubusercontent.com/12907710/208044554-1e8de6b5-48d8-44e4-a7b5-75076c7ebb71.png"/> |
| 111 | +</div> |
| 112 | + |
| 113 | +**v1.0.0rc1** was released in 30/12/2022: |
| 114 | + |
| 115 | +- Support [RTMDet](configs/rotated_rtmdet) rotated object detection models. The technical report of RTMDet is on [arxiv](https://arxiv.org/abs/2212.07784) |
| 116 | +- Support [H2RBox](configs/h2rbox) models. The technical report of H2RBox is on [arxiv](https://arxiv.org/abs/2210.06742) |
| 117 | + |
| 118 | +## Installation |
| 119 | + |
| 120 | +Please refer to [Installation](https://mmrotate.readthedocs.io/en/1.x/get_started.html) for more detailed instruction. |
| 121 | + |
| 122 | +## Getting Started |
| 123 | + |
| 124 | +Please see [Overview](https://mmrotate.readthedocs.io/en/1.x/overview.html) for the general introduction of MMRotate. |
| 125 | + |
| 126 | +For detailed user guides and advanced guides, please refer to our [documentation](https://mmrotate.readthedocs.io/en/1.x/): |
| 127 | + |
| 128 | +- User Guides |
| 129 | + - [Train & Test](https://mmrotate.readthedocs.io/en/1.x/user_guides/index.html#train-test) |
| 130 | + - [Learn about Configs](https://mmrotate.readthedocs.io/en/1.x/user_guides/config.html) |
| 131 | + - [Inference with existing models](https://mmrotate.readthedocs.io/en/1.x/user_guides/inference.html) |
| 132 | + - [Dataset Prepare](https://mmrotate.readthedocs.io/en/1.x/user_guides/dataset_prepare.html) |
| 133 | + - [Test existing models on standard datasets](https://mmrotate.readthedocs.io/en/1.x/user_guides/train_test.html) |
| 134 | + - [Train predefined models on standard datasets](https://mmrotate.readthedocs.io/en/1.x/user_guides/train_test.html) |
| 135 | + - [Test Results Submission](https://mmrotate.readthedocs.io/en/1.x/user_guides/test_results_submission.html) |
| 136 | + - [Useful Tools](https://mmrotate.readthedocs.io/en/1.x/user_guides/index.html#useful-tools) |
| 137 | +- Advanced Guides |
| 138 | + - [Basic Concepts](https://mmrotate.readthedocs.io/en/1.x/advanced_guides/index.html#basic-concepts) |
| 139 | + - [Component Customization](https://mmrotate.readthedocs.io/en/1.x/advanced_guides/index.html#component-customization) |
| 140 | + - [How to](https://mmrotate.readthedocs.io/en/1.x/advanced_guides/index.html#how-to) |
| 141 | + |
| 142 | +We also provide colab tutorial [](demo/MMRotate_Tutorial.ipynb). |
| 143 | + |
| 144 | +To migrate from MMRotate 0.x, please refer to [migration](https://mmrotate.readthedocs.io/en/1.x/migration.html). |
| 145 | + |
| 146 | +## Model Zoo |
| 147 | + |
| 148 | +Results and models are available in the *README.md* of each method's config directory. |
| 149 | +A summary can be found in the [Model Zoo](docs/en/model_zoo.md) page. |
| 150 | + |
| 151 | +<details open> |
| 152 | +<summary><b>Supported algorithms:</b></summary> |
| 153 | + |
| 154 | +- [x] [Rotated RetinaNet-OBB/HBB](configs/rotated_retinanet/README.md) (ICCV'2017) |
| 155 | +- [x] [Rotated FasterRCNN-OBB](configs/rotated_faster_rcnn/README.md) (TPAMI'2017) |
| 156 | +- [x] [Rotated RepPoints-OBB](configs/rotated_reppoints/README.md) (ICCV'2019) |
| 157 | +- [x] [Rotated FCOS](configs/rotated_fcos/README.md) (ICCV'2019) |
| 158 | +- [x] [RoI Transformer](configs/roi_trans/README.md) (CVPR'2019) |
| 159 | +- [x] [Gliding Vertex](configs/gliding_vertex/README.md) (TPAMI'2020) |
| 160 | +- [x] [Rotated ATSS-OBB](configs/rotated_atss/README.md) (CVPR'2020) |
| 161 | +- [x] [CSL](configs/csl/README.md) (ECCV'2020) |
| 162 | +- [x] [R<sup>3</sup>Det](configs/r3det/README.md) (AAAI'2021) |
| 163 | +- [x] [S<sup>2</sup>A-Net](configs/s2anet/README.md) (TGRS'2021) |
| 164 | +- [x] [ReDet](configs/redet/README.md) (CVPR'2021) |
| 165 | +- [x] [Beyond Bounding-Box](configs/cfa/README.md) (CVPR'2021) |
| 166 | +- [x] [Oriented R-CNN](configs/oriented_rcnn/README.md) (ICCV'2021) |
| 167 | +- [x] [GWD](configs/gwd/README.md) (ICML'2021) |
| 168 | +- [x] [KLD](configs/kld/README.md) (NeurIPS'2021) |
| 169 | +- [x] [SASM](configs/sasm_reppoints/README.md) (AAAI'2022) |
| 170 | +- [x] [Oriented RepPoints](configs/oriented_reppoints/README.md) (CVPR'2022) |
| 171 | +- [x] [KFIoU](configs/kfiou/README.md) (ICLR'2023) |
| 172 | +- [x] [H2RBox](configs/h2rbox/README.md) (ICLR'2023) |
| 173 | +- [x] [PSC](configs/psc/README.md) (CVPR'2023) |
| 174 | +- [x] [RTMDet](configs/rotated_rtmdet/README.md) (arXiv) |
| 175 | +- [x] [H2RBox-v2](configs/h2rbox_v2/README.md) (arXiv) |
| 176 | + |
| 177 | +</details> |
| 178 | + |
| 179 | +## Data Preparation |
| 180 | + |
| 181 | +Please refer to [data_preparation.md](tools/data/README.md) to prepare the data. |
| 182 | + |
| 183 | +## FAQ |
| 184 | + |
| 185 | +Please refer to [FAQ](docs/en/notes/faq.md) for frequently asked questions. |
| 186 | + |
| 187 | +## Contributing |
| 188 | + |
| 189 | +We appreciate all contributions to improve MMRotate. Please refer to [CONTRIBUTING.md](.github/CONTRIBUTING.md) for the contributing guideline. |
| 190 | + |
| 191 | +## Acknowledgement |
| 192 | + |
| 193 | +MMRotate 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 appreciate the [Student Innovation Center of SJTU](https://www.si.sjtu.edu.cn/) for providing rich computing resources at the beginning of the project. 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 methods. |
| 194 | + |
| 195 | +## Citation |
| 196 | + |
| 197 | +If you use this toolbox or benchmark in your research, please cite this project. |
| 198 | + |
| 199 | +```bibtex |
| 200 | +@inproceedings{zhou2022mmrotate, |
| 201 | + title = {MMRotate: A Rotated Object Detection Benchmark using PyTorch}, |
| 202 | + author = {Zhou, Yue and Yang, Xue and Zhang, Gefan and Wang, Jiabao and Liu, Yanyi and |
| 203 | + Hou, Liping and Jiang, Xue and Liu, Xingzhao and Yan, Junchi and Lyu, Chengqi and |
| 204 | + Zhang, Wenwei and Chen, Kai}, |
| 205 | + booktitle={Proceedings of the 30th ACM International Conference on Multimedia}, |
| 206 | + pages = {7331–7334}, |
| 207 | + numpages = {4}, |
| 208 | + year={2022} |
| 209 | +} |
| 210 | +``` |
| 211 | + |
| 212 | +## License |
| 213 | + |
| 214 | +This project is released under the [Apache 2.0 license](LICENSE). |
| 215 | + |
| 216 | +## Projects in OpenMMLab |
| 217 | + |
| 218 | +- [MMEngine](https://github.com/open-mmlab/mmengine): OpenMMLab foundational library for training deep learning models. |
| 219 | +- [MMCV](https://github.com/open-mmlab/mmcv): OpenMMLab foundational library for computer vision. |
| 220 | +- [MMPreTrain](https://github.com/open-mmlab/mmpretrain): OpenMMLab pre-training toolbox and benchmark. |
| 221 | +- [MMagic](https://github.com/open-mmlab/mmagic): Open**MM**Lab **A**dvanced, **G**enerative and **I**ntelligent **C**reation toolbox. |
| 222 | +- [MMDetection](https://github.com/open-mmlab/mmdetection): OpenMMLab detection toolbox and benchmark. |
| 223 | +- [MMDetection3D](https://github.com/open-mmlab/mmdetection3d): OpenMMLab's next-generation platform for general 3D object detection. |
| 224 | +- [MMRotate](https://github.com/open-mmlab/mmrotate): OpenMMLab rotated object detection toolbox and benchmark. |
| 225 | +- [MMYOLO](https://github.com/open-mmlab/mmyolo): OpenMMLab YOLO series toolbox and benchmark. |
| 226 | +- [MMSegmentation](https://github.com/open-mmlab/mmsegmentation): OpenMMLab semantic segmentation toolbox and benchmark. |
| 227 | +- [MMOCR](https://github.com/open-mmlab/mmocr): OpenMMLab text detection, recognition, and understanding toolbox. |
| 228 | +- [MMPose](https://github.com/open-mmlab/mmpose): OpenMMLab pose estimation toolbox and benchmark. |
| 229 | +- [MMHuman3D](https://github.com/open-mmlab/mmhuman3d): OpenMMLab 3D human parametric model toolbox and benchmark. |
| 230 | +- [MMSelfSup](https://github.com/open-mmlab/mmselfsup): OpenMMLab self-supervised learning toolbox and benchmark. |
| 231 | +- [MMRazor](https://github.com/open-mmlab/mmrazor): OpenMMLab model compression toolbox and benchmark. |
| 232 | +- [MMFewShot](https://github.com/open-mmlab/mmfewshot): OpenMMLab fewshot learning toolbox and benchmark. |
| 233 | +- [MMAction2](https://github.com/open-mmlab/mmaction2): OpenMMLab's next-generation action understanding toolbox and benchmark. |
| 234 | +- [MMTracking](https://github.com/open-mmlab/mmtracking): OpenMMLab video perception toolbox and benchmark. |
| 235 | +- [MMFlow](https://github.com/open-mmlab/mmflow): OpenMMLab optical flow toolbox and benchmark. |
| 236 | +- [MMEditing](https://github.com/open-mmlab/mmediting): OpenMMLab image and video editing toolbox. |
| 237 | +- [MMGeneration](https://github.com/open-mmlab/mmgeneration): OpenMMLab image and video generative models toolbox. |
| 238 | +- [MMDeploy](https://github.com/open-mmlab/mmdeploy): OpenMMLab model deployment framework. |
| 239 | +- [MIM](https://github.com/open-mmlab/mim): MIM installs OpenMMLab packages. |
| 240 | +- [MMEval](https://github.com/open-mmlab/mmeval): A unified evaluation library for multiple machine learning libraries. |
| 241 | +- [Playground](https://github.com/open-mmlab/playground): A central hub for gathering and showcasing amazing projects built upon OpenMMLab. |
0 commit comments