Philipp Allgeuer
7dca27dd57
[Fix] Fix warning with `torch.meshgrid`. ( #860 )
...
* Fix warning with torch.meshgrid
* Add torch_meshgrid_ij wrapper
* Use `digit_version` instead of packaging package.
Co-authored-by: mzr1996 <mzr1996@163.com>
2022-09-30 15:01:36 +08:00
takuoko
1047daa28e
[Feature] Support HorNet Backbone. ( #1013 )
...
* add hornet
* add hornet
* add hornet
* add hornet
* add hornet
* add hornet
* add hornet
* fix test for torch before 1.7.0
* del timm
* fix readme
* fix readme
* Update mmcls/models/backbones/hornet.py
Co-authored-by: Ezra-Yu <18586273+Ezra-Yu@users.noreply.github.com>
* fix docs
* fix docs
* s -> scale
* fix dims and dpr impl
* fix layer scale
* refactor gnconv
* add dw_cfg
* add convert tools
* update code
* update docs
* update readme
* update URLs
Co-authored-by: Ezra-Yu <18586273+Ezra-Yu@users.noreply.github.com>
2022-09-27 10:37:49 +08:00
Hubert
6ec38fe742
[Feature] Support Swin Transform V2. ( #799 )
...
* init rough try for modify
* Init swin transform v2
* lint
* reformat
* init config
* refactor
* update config
* fix test
* add doc
* refact
* add model meta
* rename config
* add doc
* fix meta model name
* restruct
* rename embed_bims to out_channels
* fix ut and update model
2022-08-03 17:33:08 +08:00
takuoko
c1534f9126
[Feature] Support resizemix. ( #676 )
...
* add resizemix
* skip torch.__version__ < 1.7.0
* Update mmcls/models/utils/augment/resizemix.py
Co-authored-by: Ma Zerun <mzr1996@163.com>
* Update mmcls/models/utils/augment/resizemix.py
Co-authored-by: Ma Zerun <mzr1996@163.com>
* resize -> F.interpolate
* fix docs
* fix test
* add Copyright
* add argument interpolation
Co-authored-by: Ma Zerun <mzr1996@163.com>
2022-03-07 12:11:20 +08:00
Ma Zerun
c708770b42
[Enhance] Support dynamic input shape for ViT-based algorithms. ( #706 )
...
* Move `resize_pos_embed` to `mmcls.models.utils`
* Refactor Vision Transformer
* Refactor DeiT
* Refactor MLP-Mixer
* Refactor Swin-Transformer
* Remove `indexing` arg
* Support dynamic inputs for t2t_vit
* Add copyright
* Fix bugs in swin transformer
* Add `pad_small_maps` option
* Update swin transformer
* Handle `attn_mask` in checkpoints of swin
* Imporve by comments
2022-03-03 13:10:12 +08:00
Ma Zerun
fcd57913ae
[Enhance] Upgrade isort pre-commit hooks. ( #687 )
...
* Use new version flake8 and isort hooks
* Fix missing copyright
2022-02-17 02:17:20 +08:00
Ezra-Yu
94eb3ff83e
[Feature] Add Twins backbone and convert checkpoints. ( #642 )
...
* add twins backbone
* add position_encoding
* refactor twins
* Supplemental unit tests
* update docstring and readme
* update docstring and readme
* update docstring and readme
* update docstring
* update docstring
* update docstring
* update docstring
* remove note
* update doc and docstring
* update docstring
* update docstring
* use abstract pdf link and rename yamlfile
* Update model link
Co-authored-by: mzr1996 <mzr1996@163.com>
2022-01-27 10:25:05 +08:00
takuoko
d29037e8d1
[Enhance] Suport Mixup&Cutmix for multi-label task.
2022-01-21 11:30:58 +08:00
Ma Zerun
7dfc9e4a85
Bump version to v0.19.0 ( #623 )
2021-12-31 12:55:47 +08:00
Ezra-Yu
0184527bd4
[Enhance] Enhence SE layer to support custom squeeze channels. ( #417 )
...
* add enhenced SE
* Update
* rm basechannel
* fix docstring
* Update se_layer.py
fix docstring
2021-08-20 13:31:44 +08:00
Ma Zerun
f9eb9b409b
[Docs] Add Copyright information. ( #413 )
2021-08-17 19:52:42 +08:00
Ma Zerun
1a7cebe4b9
[Refactor] Refactor unittest ( #321 )
...
* Refactor unit tests folder structure.
* Remove label smooth and Vit test in `test_classifiers.py`
* Rename test_utils in dataset to test_dataset_utils
* Split test_models/test_utils/test_utils.py to multiple sub files.
* Add unit tests of classifiers and heads
* Use patch context manager.
* Add unit test of `is_tracing`, and add warning in `is_tracing` if torch
verison is smaller than 1.6.0
2021-07-08 22:49:05 +08:00