"git@developer.sourcefind.cn:zhaoyu6/sglang.git" did not exist on "93f75778beb9a0387c7f3e0f974b39addeea8e94"
README.md 5.97 KB
Newer Older
pangjm's avatar
pangjm committed
1

Kai Chen's avatar
Kai Chen committed
2
3
4
# MMDetection

**News**: We released the technical report on [ArXiv](https://arxiv.org/abs/1906.07155).
Dahua Lin's avatar
Dahua Lin committed
5

Kai Chen's avatar
Kai Chen committed
6
7
Documentation: https://mmdetection.readthedocs.io/

Kai Chen's avatar
Kai Chen committed
8
## Introduction
Dahua Lin's avatar
Dahua Lin committed
9

Kai Chen's avatar
Kai Chen committed
10
The master branch works with **PyTorch 1.1** or higher.
Kai Chen's avatar
Kai Chen committed
11

Kai Chen's avatar
Kai Chen committed
12
13
mmdetection is an open source object detection toolbox based on PyTorch. It is
a part of the open-mmlab project developed by [Multimedia Laboratory, CUHK](http://mmlab.ie.cuhk.edu.hk/).
Dahua Lin's avatar
Dahua Lin committed
14

Kai Chen's avatar
Kai Chen committed
15
16
![demo image](demo/coco_test_12510.jpg)

Kai Chen's avatar
Kai Chen committed
17
### Major features
Dahua Lin's avatar
Dahua Lin committed
18
19
20

- **Modular Design**

Kai Chen's avatar
Kai Chen committed
21
  We decompose the detection framework into different components and one can easily construct a customized object detection framework by combining different modules.
pangjm's avatar
pangjm committed
22

Dahua Lin's avatar
Dahua Lin committed
23
24
- **Support of multiple frameworks out of box**

Kai Chen's avatar
Kai Chen committed
25
  The toolbox directly supports popular and contemporary detection frameworks, *e.g.* Faster RCNN, Mask RCNN, RetinaNet, etc.
Kai Chen's avatar
Kai Chen committed
26

Kai Chen's avatar
Kai Chen committed
27
- **High efficiency**
Kai Chen's avatar
Kai Chen committed
28

Kai Chen's avatar
Kai Chen committed
29
  All basic bbox and mask operations run on GPUs now. The training speed is faster than or comparable to other codebases, including [Detectron](https://github.com/facebookresearch/Detectron), [maskrcnn-benchmark](https://github.com/facebookresearch/maskrcnn-benchmark) and [SimpleDet](https://github.com/TuSimple/simpledet).
pangjm's avatar
pangjm committed
30

Dahua Lin's avatar
Dahua Lin committed
31
32
- **State of the art**

Kai Chen's avatar
Kai Chen committed
33
  The toolbox stems from the codebase developed by the *MMDet* team, who won [COCO Detection Challenge](http://cocodataset.org/#detection-leaderboard) in 2018, and we keep pushing it forward.
Kai Chen's avatar
Kai Chen committed
34

Kai Chen's avatar
Kai Chen committed
35
Apart from MMDetection, we also released a library [mmcv](https://github.com/open-mmlab/mmcv) for computer vision research, which is heavily depended on by this toolbox.
Kai Chen's avatar
Kai Chen committed
36
37
38

## License

Kai Chen's avatar
Kai Chen committed
39
This project is released under the [Apache 2.0 license](LICENSE).
Kai Chen's avatar
Kai Chen committed
40

Kai Chen's avatar
Kai Chen committed
41
## Changelog
Kai Chen's avatar
Kai Chen committed
42

Kai Chen's avatar
Kai Chen committed
43
44
v1.0rc1 was released in 13/12/2019, with more than 20 bug fixes and 30 improvements and new features.
Please refer to [CHANGELOG.md](docs/CHANGELOG.md) for details and history versions.
Kai Chen's avatar
Kai Chen committed
45

Kai Chen's avatar
Kai Chen committed
46
47
## Benchmark and model zoo

Kai Chen's avatar
Kai Chen committed
48
Supported methods and backbones are shown in the below table.
49
Results and models are available in the [Model zoo](docs/MODEL_ZOO.md).
Kai Chen's avatar
Kai Chen committed
50

Kai Chen's avatar
Kai Chen committed
51
52
53
54
55
56
57
58
59
60
61
62
|                    | ResNet   | ResNeXt  | SENet    | VGG      | HRNet |
|--------------------|:--------:|:--------:|:--------:|:--------:|:-----:|
| RPN                | ✓        | ✓        | ☐        | ✗        | ✓     |
| Fast R-CNN         | ✓        | ✓        | ☐        | ✗        | ✓     |
| Faster R-CNN       | ✓        | ✓        | ☐        | ✗        | ✓     |
| Mask R-CNN         | ✓        | ✓        | ☐        | ✗        | ✓     |
| Cascade R-CNN      | ✓        | ✓        | ☐        | ✗        | ✓     |
| Cascade Mask R-CNN | ✓        | ✓        | ☐        | ✗        | ✓     |
| SSD                | ✗        | ✗        | ✗        | ✓        | ✗     |
| RetinaNet          | ✓        | ✓        | ☐        | ✗        | ✓     |
| GHM                | ✓        | ✓        | ☐        | ✗        | ✓     |
| Mask Scoring R-CNN | ✓        | ✓        | ☐        | ✗        | ✓     |
Kai Chen's avatar
Kai Chen committed
63
| Double-Head R-CNN  | ✓        | ✓        | ☐        | ✗        | ✓     |
Kai Chen's avatar
Kai Chen committed
64
| Grid R-CNN (Plus)  | ✓        | ✓        | ☐        | ✗        | ✓     |
Kai Chen's avatar
Kai Chen committed
65
66
67
| Hybrid Task Cascade| ✓        | ✓        | ☐        | ✗        | ✓     |
| Libra R-CNN        | ✓        | ✓        | ☐        | ✗        | ✓     |
| Guided Anchoring   | ✓        | ✓        | ☐        | ✗        | ✓     |
Kai Chen's avatar
Kai Chen committed
68
69
70
71
| FCOS               | ✓        | ✓        | ☐        | ✗        | ✓     |
| RepPoints          | ✓        | ✓        | ☐        | ✗        | ✓     |
| Foveabox           | ✓        | ✓        | ☐        | ✗        | ✓     |
| FreeAnchor         | ✓        | ✓        | ☐        | ✗        | ✓     |
Kai Chen's avatar
Kai Chen committed
72
| NAS-FPN            | ✓        | ✓        | ☐        | ✗        | ✓     |
73
| ATSS               | ✓        | ✓        | ☐        | ✗        | ✓     |
Kai Chen's avatar
Kai Chen committed
74

Kai Chen's avatar
Kai Chen committed
75
Other features
Kai Chen's avatar
Kai Chen committed
76
- [x] DCNv2
Kai Chen's avatar
Kai Chen committed
77
- [x] Group Normalization
78
- [x] Weight Standardization
Kai Chen's avatar
Kai Chen committed
79
80
- [x] OHEM
- [x] Soft-NMS
Kai Chen's avatar
Kai Chen committed
81
82
- [x] Generalized Attention
- [x] GCNet
Cao Yuhang's avatar
Cao Yuhang committed
83
- [x] Mixed Precision (FP16) Training
GothicAi's avatar
GothicAi committed
84
- [x] [InstaBoost](configs/instaboost/README.md)
Kai Chen's avatar
Kai Chen committed
85
86


Kai Chen's avatar
Kai Chen committed
87
88
## Installation

89
Please refer to [INSTALL.md](docs/INSTALL.md) for installation and dataset preparation.
Kai Chen's avatar
Kai Chen committed
90

Kai Chen's avatar
Kai Chen committed
91

Kai Chen's avatar
Kai Chen committed
92
## Get Started
Kai Chen's avatar
Kai Chen committed
93

94
Please see [GETTING_STARTED.md](docs/GETTING_STARTED.md) for the basic usage of MMDetection.
Kai Chen's avatar
Kai Chen committed
95

Kai Chen's avatar
Kai Chen committed
96
97
## Contributing

98
We appreciate all contributions to improve MMDetection. Please refer to [CONTRIBUTING.md](.github/CONTRIBUTING.md) for the contributing guideline.
Kai Chen's avatar
Kai Chen committed
99

Kai Chen's avatar
Kai Chen committed
100
101
## Acknowledgement

102
MMDetection 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.
Kai Chen's avatar
Kai Chen committed
103
104
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 detectors.

Kai Chen's avatar
Kai Chen committed
105
106
107

## Citation

Kai Chen's avatar
Kai Chen committed
108
If you use this toolbox or benchmark in your research, please cite this project.
Kai Chen's avatar
Kai Chen committed
109
110

```
Kai Chen's avatar
Kai Chen committed
111
@article{mmdetection,
Kai Chen's avatar
Kai Chen committed
112
  title   = {{MMDetection}: Open MMLab Detection Toolbox and Benchmark},
Kai Chen's avatar
Kai Chen committed
113
114
115
116
117
118
119
120
  author  = {Chen, Kai and Wang, Jiaqi and Pang, Jiangmiao and Cao, Yuhang and
             Xiong, Yu and Li, Xiaoxiao and Sun, Shuyang and Feng, Wansen and
             Liu, Ziwei and Xu, Jiarui and Zhang, Zheng and Cheng, Dazhi and
             Zhu, Chenchen and Cheng, Tianheng and Zhao, Qijie and Li, Buyu and
             Lu, Xin and Zhu, Rui and Wu, Yue and Dai, Jifeng and Wang, Jingdong
             and Shi, Jianping and Ouyang, Wanli and Loy, Chen Change and Lin, Dahua},
  journal= {arXiv preprint arXiv:1906.07155},
  year={2019}
Kai Chen's avatar
Kai Chen committed
121
122
}
```
Kai Chen's avatar
Kai Chen committed
123
124
125
126


## Contact

Kai Chen's avatar
Kai Chen committed
127
This repo is currently maintained by Kai Chen ([@hellock](http://github.com/hellock)), Yuhang Cao ([@yhcao6](https://github.com/yhcao6)), Wenwei Zhang ([@ZwwWayne](https://github.com/ZwwWayne)), Jiangmiao Pang ([@OceanPang](https://github.com/OceanPang)) and Jiaqi Wang ([@myownskyW7](https://github.com/myownskyW7)).