Skip to content
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

[Fix] Fix pixel_decoder_type discrimination in MaskFormer Head. #9176

Merged

Conversation

MengzhangLI
Copy link
Contributor

Motivation

Currently, MMDetection does not treat inter-codebases using modules very well. For example, in upstream codebase which pip install mmdet and uses type mmdet.PixelDecoder, the error would happen in this line because this if else would discriminate mmdet.PixelDecoder and PixelDecoder although they are the same.

image

@CLAassistant
Copy link

CLAassistant commented Oct 28, 2022

CLA assistant check
All committers have signed the CLA.

@ZwwWayne
Copy link
Collaborator

Hi @MengzhangLI

Thanks for your kind PR. It seems that CLA is not signed. Could you sign the CLA so that eventually we could merge this PR after review? You can check the contents and follow the instruction in the communication box shown as below
image

@ZwwWayne ZwwWayne added this to the 3.0.0rc3 milestone Oct 28, 2022
Li-Qingyun
Li-Qingyun previously approved these changes Oct 31, 2022
mmdet/models/dense_heads/maskformer_head.py Outdated Show resolved Hide resolved
@RangiLyu RangiLyu added the v-3.x label Nov 4, 2022
Copy link
Member

@RangiLyu RangiLyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RangiLyu RangiLyu added the bug Something isn't working label Nov 8, 2022
@ZwwWayne ZwwWayne merged commit c9c6b3f into open-mmlab:dev-3.x Nov 9, 2022
ZwwWayne pushed a commit that referenced this pull request Nov 14, 2022
)

* [Fix] Fix pixel_decoder_type assertion in MaskFormer

* use isinstance assertion

* fix
ZwwWayne pushed a commit that referenced this pull request Nov 14, 2022
* [Fix]: fix wrong padding value in cached MixUp (#9259)

* [Fix] Fix resume arg conflict. (#9287)

* [Fix] Fix `pixel_decoder_type` discrimination in MaskFormer Head. (#9176)

* [Fix] Fix pixel_decoder_type assertion in MaskFormer

* use isinstance assertion

* fix

* fix inference demo

Co-authored-by: plutoyuxie <34409171+plutoyuxie@users.noreply.github.com>
Co-authored-by: RangiLyu <lyuchqi@gmail.com>
Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
ZwwWayne pushed a commit that referenced this pull request Nov 23, 2022
* [Fix]: fix wrong padding value in cached MixUp (#9259)

* [Enhance]: Add resume from specific checkpoint in CLI

* [Fix] Fix resume arg conflict. (#9287)

* [Fix] Fix `pixel_decoder_type` discrimination in MaskFormer Head. (#9176)

* [Fix] Fix pixel_decoder_type assertion in MaskFormer

* use isinstance assertion

* fix

* fix resume conflict

* support both auto-resume and resume-from

Co-authored-by: plutoyuxie <34409171+plutoyuxie@users.noreply.github.com>
Co-authored-by: RangiLyu <lyuchqi@gmail.com>
Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
ZwwWayne added a commit that referenced this pull request Nov 25, 2022
…9292)

* [Fix]: fix wrong padding value in cached MixUp (#9259)

* [Fix] Fix resume arg conflict. (#9287)

* [Fix] Fix `pixel_decoder_type` discrimination in MaskFormer Head. (#9176)

* [Fix] Fix pixel_decoder_type assertion in MaskFormer

* use isinstance assertion

* fix

* fix faq

* Apply suggestions from code review

Co-authored-by: Haian Huang(深度眸) <1286304229@qq.com>

* fix format

* fix format

* fix faq.md

* Update docs/en/notes/faq.md

Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>

* 1123

* Update faq.md

* fix format

Co-authored-by: plutoyuxie <34409171+plutoyuxie@users.noreply.github.com>
Co-authored-by: RangiLyu <lyuchqi@gmail.com>
Co-authored-by: MengzhangLI <mcmong@pku.edu.cn>
Co-authored-by: Haian Huang(深度眸) <1286304229@qq.com>
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v-3.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants