-
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 Segmenter #955
Conversation
Hi, @rstrudel thank you very much for your nice PR. For the convenience of your time, I would review and modify your code in your forked branch to enable it concord on our code base style. I try to finish first modification (For example, our docstring and pre-commit standard) in the next week, let's keep contact. Thanks again and wish you all the best. |
Hi @rstrudel |
Hi @Junjun2016 , |
Please merge the master branch into your branch, thank you. |
Hi @RockeyCoss , |
It's fine, Robin. Can't wait to read your paper submitted to CVPR'22 and wish it would be accepted. Best, |
Hi, Robin! What's up. Do you plan to continue finishing this pr? Feel free to contact us anytime! Best, |
Hi @MengzhangLI , |
Is it possible to set |
Hi, @rstrudel . It is not easy to change this parameter in MMSegmentation becuase If Best, |
configs/segmenter/segmenter_vit-l_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-l_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-l_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-l_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-l_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-s_linear_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-s_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-s_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-s_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-s_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-s_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-t_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-t_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-t_mask_8x1_512x512_160k_ade20k.py
Outdated
Show resolved
Hide resolved
configs/segmenter/segmenter_vit-t_mask_8x1_512x512_160k_ade20k.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.
LGTM, except for some minor revision.
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.
LGTM except for the comment for the convert script.
* segmenter: add model * update * readme: update * config: update * segmenter: update readme * segmenter: update * segmenter: update * segmenter: update * configs: set checkpoint path to pretrain folder * segmenter: modify vit-s/lin, remove data config * rreadme: update * configs: transfer from _base_ to segmenter * configs: add 8x1 suffix * configs: remove redundant lines * configs: cleanup * first attempt * swipe CI error * Update mmseg/models/decode_heads/__init__.py Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn> * segmenter_linear: use fcn backbone * segmenter_mask: update * models: add segmenter vit * decoders: yapf+remove unused imports * apply precommit * segmenter/linear_head: fix * segmenter/linear_header: fix * segmenter: fix mask transformer * fix error * segmenter/mask_head: use trunc_normal init * refactor segmenter head * Fetch upstream (#1) * [Feature] Change options to cfg-option (open-mmlab#1129) * [Feature] Change option to cfg-option * add expire date and fix the docs * modify docstring * [Fix] Add <!-- [ABSTRACT] --> in metafile open-mmlab#1127 * [Fix] Fix correct num_classes of HRNet in LoveDA dataset open-mmlab#1136 * Bump to v0.20.1 (open-mmlab#1138) * bump version 0.20.1 * bump version 0.20.1 * [Fix] revise --option to --options open-mmlab#1140 Co-authored-by: Rockey <41846794+RockeyCoss@users.noreply.github.com> Co-authored-by: MengzhangLI <mcmong@pku.edu.cn> * decode_head: switch from linear to fcn * fix init list formatting * configs: remove variants, keep only vit-s on ade * align inference metric of vit-s-mask * configs: add vit t/b/l * Update mmseg/models/decode_heads/segmenter_mask_head.py Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com> * Update mmseg/models/decode_heads/segmenter_mask_head.py Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com> * Update mmseg/models/decode_heads/segmenter_mask_head.py Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com> * Update mmseg/models/decode_heads/segmenter_mask_head.py Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com> * Update mmseg/models/decode_heads/segmenter_mask_head.py Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com> * model_converters: use torch instead of einops * setup: remove einops * segmenter_mask: fix missing imports * add necessary imported init funtion * segmenter/seg-l: set resolution to 640 * segmenter/seg-l: fix test size * fix vitjax2mmseg * add README and unittest * fix unittest * add docstring * refactor config and add pretrained link * fix typo * add paper name in readme * change segmenter config names * fix typo in readme * fix typos in readme * fix segmenter typo * fix segmenter typo * delete redundant comma in config files * delete redundant comma in config files * fix convert script * update lateset master version Co-authored-by: MengzhangLI <mcmong@pku.edu.cn> Co-authored-by: Junjun2016 <hejunjun@sjtu.edu.cn> Co-authored-by: Rockey <41846794+RockeyCoss@users.noreply.github.com> Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
Hi @rstrudel !First of all, we want to express our gratitude for your significant PR in the MMSeg project. Your contribution is highly appreciated, and we are grateful for your efforts in helping improve this open-source project during your personal time. We believe that many developers will benefit from your PR. We would also like to invite you to join our Special Interest Group (SIG) private channel on Discord, where you can share your experiences, ideas, and build connections with like-minded peers. To join the SIG channel, simply message moderator— OpenMMLab on Discord or briefly share your open-source contributions in the #introductions channel and we will assist you. Look forward to seeing you there! Join us :https://discord.gg/raweFPmdzG If you are Chinese or have WeChat,welcome to join our community on WeChat. You can add our assistant :openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends:) |
Motivation
Support Segmenter . Copy of #952 not using the master branch.
Modification
I added configuration files to train segmenter on ADE20K and Cityscapes. I also added a script to convert the original ViT checkpoints in JAX to checkpoints compatible with the ViT class of mmsegmentation.
To be done
Update results (2022-01-06)