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 resume arg conflict. #9287

Merged
merged 1 commit into from
Nov 9, 2022
Merged

Conversation

RangiLyu
Copy link
Member

@RangiLyu RangiLyu commented Nov 9, 2022

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

If args.resume is None, cfg.resume = args.resume will always set resume to None even if you set resume=True in config or through --cfg-options.

Modification

Only overwrite the cfg.resume when args.resume is not None.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  3. If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMCls.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

@RangiLyu RangiLyu added bug Something isn't working v-3.x labels Nov 9, 2022
@ZwwWayne ZwwWayne merged commit 6ce412e into open-mmlab:dev-3.x Nov 9, 2022
@ZwwWayne ZwwWayne added this to the 3.0.0rc4 milestone Nov 9, 2022
ZwwWayne pushed a commit that referenced this pull request Nov 14, 2022
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

4 participants