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

Adding ciou and diou support in _box_loss() #5984

Merged
merged 4 commits into from
May 11, 2022

Conversation

datumbox
Copy link
Contributor

@datumbox datumbox commented May 10, 2022

Related to #5983

Adding support of cIoU and dIoU loss on the private _box_loss() used for regression. Currently this is an internal API used only by RetinaNet. I've done limited runs and seems that neither of the two losses improve performance:

  • gIoU (baseline): 41.5 mAP
  • cIoU: 41.1 mAP
  • dIoU: 41.3 mAP

Hence I wont be making any changes on the retinanet_resnet50_fpn_v2 pretrained weights.

@datumbox datumbox mentioned this pull request May 11, 2022
24 tasks
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @datumbox , LGTM

@datumbox datumbox merged commit 64b1e27 into pytorch:main May 11, 2022
@datumbox datumbox deleted the models/extend_boxloss branch May 11, 2022 09:49
facebook-github-bot pushed a commit that referenced this pull request May 20, 2022
Summary:
* Adding ciou and diou support in `_box_loss()`

* Fix linter

* Addressing comments for nits

Reviewed By: datumbox

Differential Revision: D36413352

fbshipit-source-id: 8a53c68ff2a58966f02edae7f210c8db5240a4d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants