mmsegmentation/mmseg/models/utils
sennnnn 4d34581897
[Feature] Segformer backbone re-implementation (#594)
* [Feature]Segformer re-implementation

* Using act_cfg and norm_cfg to control activation and normalization

* Split this PR into several little PRs

* Fix lint error

* Remove SegFormerHead

* parameters init refactor

* 1. Refactor segformer backbone parameters init;

2. Remove rebundant functions and unit tests;

* Remove rebundant codes

* 1. Remove rebundant codes;

2. Modify module name;

* Refactor the backbone of segformer using mmcv.cnn.bricks.transformer.py

* Fix some code logic bugs.

* Add mit_convert.py to match pretrain keys of segformer.

* Resolve some comments.

* 1. Add some assert to ensure right params;

2. Support flexible peconv position;

* Add pe_index assert and fix unit test.

* 1. Add doc string for MixVisionTransformer;

2. Add some unit tests for MixVisionTransformer;

* Use hw_shape to pass shape of feature map.

* 1. Fix doc string of MixVisionTransformer;

2. Simplify MixFFN;

3. Modify H, W to hw_shape;

* Add more unit tests.

* Add doc string for shape convertion functions.

* Add some unit tests to improve code coverage.

* Fix Segformer backbone pretrain weights match bug.

* resolve the shape convertion functions doc string.

* Add pad_to_patch_size arg.

* Modify default value of pad_to_patch_size arg.
2021-07-19 09:40:40 -07:00
..
__init__.py [Feature] Segformer backbone re-implementation (#594) 2021-07-19 09:40:40 -07:00
ckpt_convert.py [Feature] Segformer backbone re-implementation (#594) 2021-07-19 09:40:40 -07:00
embed.py [Feature] Segformer backbone re-implementation (#594) 2021-07-19 09:40:40 -07:00
inverted_residual.py [Fix] fix fast scnn (#606) 2021-07-02 17:58:35 +08:00
make_divisible.py [New model] Support MobileNetV3 (#268) 2020-12-26 00:02:50 -08:00
res_layer.py [Refactor]: Unified parameter initialization (#567) 2021-06-16 21:41:29 -07:00
se_layer.py Fix typo: upsampe_cfg -> upsample_cfg (#449) 2021-03-30 09:51:38 -07:00
self_attention_block.py init commit 2020-07-10 02:39:01 +08:00
shape_convert.py [Feature] Segformer backbone re-implementation (#594) 2021-07-19 09:40:40 -07:00
up_conv_block.py Fix typo: upsampe_cfg -> upsample_cfg (#449) 2021-03-30 09:51:38 -07:00