h-deformable-detr-mmdet
[CVPR2023] This is an official mmdet implementation of paper "DETRs with Hybrid Matching".
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.4%) to scientific vocabulary
Repository
[CVPR2023] This is an official mmdet implementation of paper "DETRs with Hybrid Matching".
Basic Info
Statistics
- Stars: 49
- Watchers: 1
- Forks: 4
- Open Issues: 2
- Releases: 1
Metadata Files
README.md
H-Deformable-DETR for MMDet
This is the official implementation of the paper "DETRs with Hybrid Matching".
Authors: Ding Jia, Yuhui Yuan, Haodi He, Xiaopei Wu, Haojun Yu, Weihong Lin, Lei Sun, Chao Zhang, Han Hu
Model ZOO
🍺🍺🍺Please checkout the branch mmdetection-with-plug-in for more clean orgnizations.📣📣📣
We provide a set of baseline results and trained models available for download:
Models with the ResNet-50 backbone
| Name | Backbone | query | epochs | AP in Paper | AP | download |
|---|---|---|---|---|---|---|
| Deformable-DETR | R50 | 300 | 12 | 43.7 | 43.7 | model |
| Deformable-DETR | R50 | 300 | 36 | 46.8 | 46.7 | model |
| Deformable-DETR + tricks | R50 | 300 | 12 | 47.0 | 46.9 | model |
| Deformable-DETR + tricks | R50 | 300 | 36 | 49.0 | 49.0 | model |
| H-Deformable-DETR + tricks | R50 | 300 | 12 | 48.7 | 48.5 | model |
| H-Deformable-DETR + tricks | R50 | 300 | 36 | 50.0 | 49.9 | model |
Notice that to align with the offical implement of Deformable DETR and other backbones, we do not freeze the stage 1-th in the ResNet-50 backbone.
Models with Swin Transformer backbones
| Name | Backbone | query | epochs | AP in Paper | AP | download |
|---|---|---|---|---|---|---|
| Deformable-DETR | Swin Tiny | 300 | 12 | 45.3, 46.0 | 46.1 | model |
| Deformable-DETR | Swin Tiny | 300 | 36 | 49.0, 49.6 | 49.6 | model |
| Deformable-DETR + tricks | Swin Tiny | 300 | 12 | 49.3 | 49.3 | model |
| Deformable-DETR + tricks | Swin Tiny | 300 | 36 | 51.8 | 52.1 | model |
| H-Deformable-DETR + tricks | Swin Tiny | 300 | 12 | 50.6 | 50.8 | model |
| H-Deformable-DETR + tricks | Swin Tiny | 300 | 36 | 53.2 | 53.3 | model |
Installation
We test our models under python=3.7.10,pytorch=1.10.1,cuda=10.2. Other versions might be available as well.
Clone this repo
sh git https://github.com/HDETR/H-Deformable-DETR-mmdet.git cd H-Deformable-DETR-mmdetInstall Pytorch and torchvision
Follow the instruction on https://pytorch.org/get-started/locally/. ```sh
an example:
conda install -c pytorch pytorch torchvision ```
- Install other needed packages
sh pip install -r requirements.txt pip install openmim mim install mmcv-full pip install -e .
Data
Please download COCO 2017 dataset and organize them as following:
H-Deformable-DETR-mmdet
├── data
│ ├── coco
│ │ ├── train2017
│ │ ├── val2017
│ │ └── annotations
| | ├── instances_train2017.json
| | └── instances_val2017.json
Run
To train a model using 8 cards
Bash
GPUS_PER_NODE=8 ./tools/dist_train.sh \
<config path> \
8
To train/eval a model with the swin transformer backbone, you need to download the backbone from the offical repo frist and specify argumentcheckpoint like our config.
To eval a model using 8 cards
Bash
GPUS_PER_NODE=8 tools/dist_test.sh \
<config path> \
<checkpoint path> \
8 --eval bbox
Modified files compared to original MMDet
- configs/deformable_detr: add baseline configs
- configs/h-deformable-detr: add h-deformable-detr configs
- mmdet/models/utils/transformer.py: enable tricks and decoderselfattn_mask
- mmdet/models/denseheads/hybridbranchdeformabledetr_head.py: enable hybrid branch strategy and tricks
- mmdet/models/denseheads/deformabledetr_head.py: enable tricks
Citing H-Deformable-DETR for MMDet
If you find H-Deformable-DETR for MMDet useful in your research, please consider citing: ```bibtex @article{jia2022detrs, title={DETRs with Hybrid Matching}, author={Jia, Ding and Yuan, Yuhui and He, Haodi and Wu, Xiaopei and Yu, Haojun and Lin, Weihong and Sun, Lei and Zhang, Chao and Hu, Han}, journal={arXiv preprint arXiv:2207.13080}, year={2022} }
@article{zhu2020deformable, title={Deformable detr: Deformable transformers for end-to-end object detection}, author={Zhu, Xizhou and Su, Weijie and Lu, Lewei and Li, Bin and Wang, Xiaogang and Dai, Jifeng}, journal={arXiv preprint arXiv:2010.04159}, year={2020} } ```
Owner
- Name: HDETR
- Login: HDETR
- Kind: organization
- Email: yuyua@microsoft.com
- Location: China
- Twitter: RainbowYuhui
- Repositories: 7
- Profile: https://github.com/HDETR
[CVPR2023] This is an official implementation of paper "DETRs with Hybrid Matching".
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - name: "MMDetection Contributors" title: "OpenMMLab Detection Toolbox and Benchmark" date-released: 2018-08-22 url: "https://github.com/open-mmlab/mmdetection" license: Apache-2.0
GitHub Events
Total
- Watch event: 1
- Fork event: 1
Last Year
- Watch event: 1
- Fork event: 1
Dependencies
- albumentations >=0.3.2
- cython *
- numpy *
- docutils ==0.16.0
- myst-parser *
- sphinx ==4.0.2
- sphinx-copybutton *
- sphinx_markdown_tables *
- sphinx_rtd_theme ==0.5.2
- mmcv-full >=1.3.17
- cityscapesscripts *
- imagecorruptions *
- scipy *
- sklearn *
- timm *
- mmcv *
- torch *
- torchvision *
- matplotlib *
- numpy *
- pycocotools *
- six *
- terminaltables *
- asynctest * test
- codecov * test
- flake8 * test
- interrogate * test
- isort ==4.3.21 test
- kwarray * test
- onnx ==1.7.0 test
- onnxruntime >=1.8.0 test
- protobuf <=3.20.1 test
- pytest * test
- ubelt * test
- xdoctest >=0.10.0 test
- yapf * test
- pytorch/pytorch ${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel build
- pytorch/pytorch ${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel build