Closed
Conversation
# Conflicts: # mmcls/models/backbones/vision_transformer.py
# Conflicts: # mmcls/models/backbones/vision_transformer.py
# Conflicts: # mmcls/models/backbones/vision_transformer.py
Codecov Report
@@ Coverage Diff @@
## master #295 +/- ##
==========================================
+ Coverage 76.02% 76.14% +0.12%
==========================================
Files 96 96
Lines 5109 5069 -40
Branches 849 842 -7
==========================================
- Hits 3884 3860 -24
+ Misses 1106 1096 -10
+ Partials 119 113 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Junjun2016
reviewed
Jun 15, 2021
Junjun2016
reviewed
Jun 15, 2021
| attn_drop_rate=0., | ||
| drop_path_rate=0., | ||
| num_fcs=2, | ||
| qkv_bias=True, |
Junjun2016
reviewed
Jun 17, 2021
| class HybridEmbed(BaseModule): | ||
| """CNN Feature Map Embedding. | ||
|
|
||
| Extract feature map from CNN, flatten, project to embedding dim. |
Junjun2016
reviewed
Jun 17, 2021
| super(PatchEmbed, self).__init__() | ||
| norm_cfg=None, | ||
| conv_cfg=None, | ||
| init_cfg=None): |
Contributor
There was a problem hiding this comment.
Add kernel_size, stride and padding args to suppport overlap embedding.
# Conflicts: # tests/test_classifiers.py
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Aug 5, 2021
6 tasks
Member
|
Closed, continue with #395 |
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Aug 5, 2021
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Aug 10, 2021
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Aug 20, 2021
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Aug 24, 2021
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Aug 24, 2021
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Sep 28, 2021
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Sep 28, 2021
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Oct 13, 2021
mzr1996
added a commit
that referenced
this pull request
Oct 18, 2021
* [Squash] Refator ViT (from #295) * Use base variable to simplify auto_aug setting * Use common PatchEmbed, remove HybridEmbed and refactor ViT init structure. * Add `output_cls_token` option and change the output format of ViT and input format of ViT head. * Update unit tests and add test for `output_cls_token`. * Support out_indices. * Standardize config files * Support resize position embedding. * Add readme file of vit * Rename config file * Improve docs about ViT. * Update docstring * Use local version `MultiheadAttention` instead of mmcv version. * Fix MultiheadAttention * Support `qk_scale` argument in `MultiheadAttention` * Improve docs and change `layer_cfg` to `layer_cfgs` and support sequence. * Use init_cfg to init Linear layer in VisionTransformerHead * update metafile * Update checkpoints and configs * Imporve docstring. * Update README * Revert GAP modification.
mzr1996
added a commit
to mzr1996/mmpretrain
that referenced
this pull request
Nov 24, 2022
* [Squash] Refator ViT (from open-mmlab#295) * Use base variable to simplify auto_aug setting * Use common PatchEmbed, remove HybridEmbed and refactor ViT init structure. * Add `output_cls_token` option and change the output format of ViT and input format of ViT head. * Update unit tests and add test for `output_cls_token`. * Support out_indices. * Standardize config files * Support resize position embedding. * Add readme file of vit * Rename config file * Improve docs about ViT. * Update docstring * Use local version `MultiheadAttention` instead of mmcv version. * Fix MultiheadAttention * Support `qk_scale` argument in `MultiheadAttention` * Improve docs and change `layer_cfg` to `layer_cfgs` and support sequence. * Use init_cfg to init Linear layer in VisionTransformerHead * update metafile * Update checkpoints and configs * Imporve docstring. * Update README * Revert GAP modification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi! This pr refactors vision transformer with FFN and MSA in transformer.py, mmcv. As the refactor_tramsformer_base branch created by shilong isn't merged now, all the unitests failed.
Pls kindly take a look.