-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support MaskFormer(NeurIPS'2021) in MMSeg 1.x #2215
Conversation
transformer_decoder=dict( | ||
type='DetrTransformerDecoder', | ||
return_intermediate=True, | ||
num_layers=6, | ||
transformerlayers=dict( | ||
type='DetrTransformerDecoderLayer', | ||
attn_cfgs=dict( | ||
type='MultiheadAttention', | ||
embed_dims=256, | ||
num_heads=8, | ||
attn_drop=0.1, | ||
proj_drop=0.1, | ||
dropout_layer=None, | ||
batch_first=False), | ||
ffn_cfgs=dict( | ||
embed_dims=256, | ||
feedforward_channels=2048, | ||
num_fcs=2, | ||
act_cfg=dict(type='ReLU', inplace=True), | ||
ffn_drop=0.1, | ||
dropout_layer=None, | ||
add_identity=True), | ||
# the following parameter was not used, | ||
# just make current api happy | ||
feedforward_channels=2048, | ||
operation_order=('self_attn', 'norm', 'cross_attn', 'norm', | ||
'ffn', 'norm')), | ||
init_cfg=None), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Mr. Li, my name is Qingyun and I participated in refactoring the DETR-like algorithm of mmdet.
We have deconstructed the registry mechanism to build DetrTransformerDecoder in the new implementation in open-mmlab/mmdetection#8763 (The PR has been merged into refactor-detr
branch of official mmdetection repo, and will be merge to 3.x when other DETRs are refactored).
I would like to remind you that the logic of building decoder and the config may need to be modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Mr. Li, my name is Qingyun and I participated in refactoring the DETR-like algorithm of mmdet. We have deconstructed the registry mechanism to build DetrTransformerDecoder in the new implementation in open-mmlab/mmdetection#8763 (The PR has been merged into
refactor-detr
branch of official mmdetection repo, and will be merge to 3.x when other DETRs are refactored). I would like to remind you that the logic of building decoder and the config may need to be modified.
Thank you qingyun, very useful information for us. ;)
configs/maskformer/maskformer_swin-t_upernet_8xb2-160k_ade20k-512x512.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configs/maskformer/maskformer_r50-d32_8xb2-160k_ade20k-512x512.py
Outdated
Show resolved
Hide resolved
configs/maskformer/maskformer_swin-s_upernet_8xb2-160k_ade20k-512x512.py
Outdated
Show resolved
Hide resolved
d511398
to
cc564e1
Compare
Codecov ReportBase: 83.18% // Head: 83.29% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev-1.x #2215 +/- ##
===========================================
+ Coverage 83.18% 83.29% +0.11%
===========================================
Files 141 142 +1
Lines 8003 8068 +65
Branches 1200 1205 +5
===========================================
+ Hits 6657 6720 +63
- Misses 1160 1161 +1
- Partials 186 187 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
cc564e1
to
341a7dd
Compare
9cbf632
to
a1d03e2
Compare
) * [Feature] Support MaskFormer(NeurIPS'2021) in MMSeg 1.x * add mmdet try except logic * refactor config files * add readme * fix config * update models & logs * add MMDET installation and fix info * fix comments * fix * fix config norm optimizer setting * update models & logs & unittest * add docstring of MaskFormerHead * wait for mmdet 3.0.0rc4 * replace seg_mask with seg_logits & add docstring for batch_input_shape * use mmdet3.0.0rc4 * fix readme and modify config comments * add mmdet installation in pr_stage_test.yml * update mmcv version in pr_stage_test.yml * add mmdet in build_cpu of pr_stage_test.yml * modify mmdet& mmcv installation in merge_stage_test.yml * fix typo * update test.yml * update test.yml
* Create convert_vae_pt_to_diffusers.py Just a simple script to convert VAE.pt files to diffusers format Tested with: https://huggingface.co/WarriorMama777/OrangeMixs/blob/main/VAEs/orangemix.vae.pt * Update convert_vae_pt_to_diffusers.py Forgot to add the function call * make style --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> Co-authored-by: chavinlo <example@example.com>
) * [Feature] Support MaskFormer(NeurIPS'2021) in MMSeg 1.x * add mmdet try except logic * refactor config files * add readme * fix config * update models & logs * add MMDET installation and fix info * fix comments * fix * fix config norm optimizer setting * update models & logs & unittest * add docstring of MaskFormerHead * wait for mmdet 3.0.0rc4 * replace seg_mask with seg_logits & add docstring for batch_input_shape * use mmdet3.0.0rc4 * fix readme and modify config comments * add mmdet installation in pr_stage_test.yml * update mmcv version in pr_stage_test.yml * add mmdet in build_cpu of pr_stage_test.yml * modify mmdet& mmcv installation in merge_stage_test.yml * fix typo * update test.yml * update test.yml
Add MaskFormer(NeurIPS'2021) in dev-1.x.
Paper: https://arxiv.org/abs/2107.06278
Repo: https://github.com/facebookresearch/MaskFormer
Results about Aligning Inference metric
(1) Using maskformer_R50_bs16_160k, the inference metric has been aligned.
Results about Aligning training metric
WIP.