Code for "an empirical study of spatial attention mechanisms in deep networks" (#730)
* update configs and related code * remove debug info * fix style issues * fix unnecessary changes * move generalized_attention.py from ops/dcn to models/plugins * change the arguments name of generalized attention, add related description and update resnet backbone * revert the change of weight_init.py * format touched files by yapf * change default data_root * update code for passing flake8 test * delete unnecessary __init__.py * Change the argument order of resnext.__init__() * remove constant_init * simplifying the init of generalized_attention module * remove unused import * format the code * change the name of config folder, add more configs, add README.md * rename num_head to num_heads * minor formatting
Showing
- configs/empirical_attention/README.md 23 additions, 0 deletionsconfigs/empirical_attention/README.md
- configs/empirical_attention/faster_rcnn_r50_fpn_attention_0010_1x.py 171 additions, 0 deletions...irical_attention/faster_rcnn_r50_fpn_attention_0010_1x.py
- configs/empirical_attention/faster_rcnn_r50_fpn_attention_0010_dcn_1x.py 174 additions, 0 deletions...al_attention/faster_rcnn_r50_fpn_attention_0010_dcn_1x.py
- configs/empirical_attention/faster_rcnn_r50_fpn_attention_1111_1x.py 171 additions, 0 deletions...irical_attention/faster_rcnn_r50_fpn_attention_1111_1x.py
- configs/empirical_attention/faster_rcnn_r50_fpn_attention_1111_dcn_1x.py 174 additions, 0 deletions...al_attention/faster_rcnn_r50_fpn_attention_1111_dcn_1x.py
- mmdet/models/backbones/resnet.py 37 additions, 10 deletionsmmdet/models/backbones/resnet.py
- mmdet/models/backbones/resnext.py 1 addition, 1 deletionmmdet/models/backbones/resnext.py
- mmdet/models/plugins/__init__.py 2 additions, 1 deletionmmdet/models/plugins/__init__.py
- mmdet/models/plugins/generalized_attention.py 384 additions, 0 deletionsmmdet/models/plugins/generalized_attention.py
configs/empirical_attention/README.md
0 → 100644
Please register or sign in to comment