Skip to content

[Fix] Keep the same weights before reassign in the PAA head#7032

Merged
ZwwWayne merged 1 commit intoopen-mmlab:devfrom
zimoqingfeng:master
Feb 8, 2022
Merged

[Fix] Keep the same weights before reassign in the PAA head#7032
ZwwWayne merged 1 commit intoopen-mmlab:devfrom
zimoqingfeng:master

Conversation

@zimoqingfeng
Copy link
Copy Markdown
Contributor

Motivation

Worried about "Fix wrong bbox loss_weight of the PAA head (#6744)" in MMDetection V2.20.0.

According to the PAA's source code, it seems that the authors calculated the cls_loss and reg_loss with the same weight (always equal to 1.0) before reassignment, and calculated the final loss with different loss_weight

https://github.com/kkhoot/PAA/blob/master/paa_core/modeling/rpn/paa/loss.py#L306
https://github.com/kkhoot/PAA/blob/master/paa_core/modeling/rpn/paa/loss.py#L356

Modification

Before reassignment, always set loss_weight as 1.0 (maybe it will lead to some confusion for setting all losses as self.loss_cls.loss_weight)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 19, 2022

CLA assistant check
All committers have signed the CLA.

@zimoqingfeng zimoqingfeng changed the title Keep the same weights before reassign in the PAA head [Fix] Keep the same weights before reassign in the PAA head Jan 19, 2022
@RangiLyu RangiLyu requested a review from hhaAndroid January 19, 2022 08:24
@RangiLyu RangiLyu added the bug Something isn't working label Jan 19, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 19, 2022

Codecov Report

Merging #7032 (a1f3029) into master (ff9bc39) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7032      +/-   ##
==========================================
- Coverage   62.35%   62.34%   -0.02%     
==========================================
  Files         327      327              
  Lines       26129    26129              
  Branches     4424     4424              
==========================================
- Hits        16293    16290       -3     
- Misses       8969     8971       +2     
- Partials      867      868       +1     
Flag Coverage Δ
unittests 62.32% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmdet/models/dense_heads/paa_head.py 89.37% <ø> (ø)
mmdet/models/dense_heads/base_dense_head.py 88.70% <0.00%> (-1.70%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff9bc39...a1f3029. Read the comment docs.

@ZwwWayne ZwwWayne changed the base branch from master to dev January 19, 2022 11:31
@zimoqingfeng
Copy link
Copy Markdown
Contributor Author

@hhaAndroid can you please check the PR ?

@zimoqingfeng
Copy link
Copy Markdown
Contributor Author

It looks like it's blocked at codecov. Is there anything I can do to help? @hhaAndroid @ZwwWayne

@ZwwWayne ZwwWayne merged commit 3bf48a7 into open-mmlab:dev Feb 8, 2022
chhluo pushed a commit to chhluo/mmdetection that referenced this pull request Feb 21, 2022
ZwwWayne pushed a commit to ZwwWayne/mmdetection that referenced this pull request Jul 19, 2022
@yaqi0510
Copy link
Copy Markdown

yaqi0510 commented Apr 3, 2023

zimoqingfeng,您好!您在MMDetection项目中给我们提的PR非常重要,感谢您付出私人时间帮助改进开源项目,相信很多开发者会从你的PR中受益。
我们非常期待与您继续合作,OpenMMLab专门成立了贡献者组织MMSIG,为贡献者们提供开源证书、荣誉体系和专享好礼,可通过添加微信:openmmlabwx 联系我们(请备注mmsig+GitHub id),由衷希望您能加入!

Hi @zimoqingfeng !First of all, we want to express our gratitude for your significant PR in the MMDetection 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 have WeChat account,welcome to join our community on WeChat. You can add our assistant :openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends:)
Thank you again for your contribution❤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants