mmclassification/tests/test_backbones
Ma Zerun 076ee10cac
[Feature] Add swin-transformer model. (#271)
* Add swin transformer archs S, B and L.

* Add SwinTransformer configs

* Add train config files of swin.

* Align init method with original code

* Use nn.Unfold to merge patch

* Change all ConfigDict to dict

* Add init_cfg for all subclasses of BaseModule.

* Use mmcv version init function

* Add Swin README

* Use safer cfg copy method

* Improve docstring and variable name.

* Fix some difference in randaug

Fix BGR bug, align scheduler config.

Fix label smoothing parameter difference.

* Fix missing droppath in attn

* Fix bug of relative posititon table if window width is not equal to
height.

* Make `PatchMerging` more general, support kernel, stride, padding and
dilation.

* Rename `residual` to `identity` in attention and FFN.

* Add `auto_pad` option to auto pad feature map

* Improve docstring.

* Fix bug in ShiftWMSA padding.

* Remove unused `key` and `value` in ShiftWMSA

* Move `PatchMerging` into utils and use common `PatchEmbed`.

* Use latest `LinearClsHead`, train augments and label smooth settings.
And remove original `SwinLinearClsHead`.

* Mark some configs as "Evalution Only".

* Remove useless comment in config

* 1. Move ShiftWindowMSA and WindowMSA to `utils/attention.py`
2. Add docstrings of each module.
3. Fix some variables' names.
4. Other small improvement.

* Add unit tests of swin-transformer and patchmerging.

* Fix some bugs in unit tests.

* Fix bug of rel_position_index if window is not square.

* Make WindowMSA implicit, and add unit tests.

* Add metafile.yml, update readme and model_zoo.
2021-07-01 09:30:42 +08:00
..
test_attention.py [Feature] Add swin-transformer model. (#271) 2021-07-01 09:30:42 +08:00
test_embed.py [Feature] Add swin-transformer model. (#271) 2021-07-01 09:30:42 +08:00
test_mobilenet_v2.py fix typo in unit test (#238) 2021-05-10 15:03:39 +08:00
test_mobilenet_v3.py Fix Mobilenetv3 structure and add pretrained model (#291) 2021-06-27 23:19:36 +08:00
test_regnet.py Add RegNet 2020-07-01 14:21:45 +08:00
test_resnest.py Add ResNeSt (#25) 2020-09-22 10:41:51 +08:00
test_resnet.py [WIP] Refactoring weights initialization (#270) 2021-06-10 10:54:34 +08:00
test_resnet_cifar.py Add ResNet_CIFAR 2020-07-12 00:06:56 +08:00
test_resnext.py
test_seresnet.py [WIP] Refactoring weights initialization (#270) 2021-06-10 10:54:34 +08:00
test_seresnext.py Fix the mid_channels of SEResNeXt 2020-07-07 11:25:48 +08:00
test_shufflenet_v1.py Add ResNeSt (#25) 2020-09-22 10:41:51 +08:00
test_shufflenet_v2.py update shufflenet_v1 2020-07-12 00:06:55 +08:00
test_swin_transformer.py [Feature] Add swin-transformer model. (#271) 2021-07-01 09:30:42 +08:00
test_utils.py [Refactor]Modify patchembed (#330) 2021-06-30 20:48:04 +08:00
test_vgg.py Update CONTRIBUTING.md according to mmcv (#210) 2021-04-14 21:22:37 +08:00
test_vision_transformer.py [Feature]Add Vit (#214) 2021-04-16 19:22:41 +08:00