Skip to content

use generalised_box_iou function to calculate giou_loss #5877

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

Closed
wants to merge 1 commit into from

Conversation

abhi-glitchhg
Copy link
Contributor

@abhi-glitchhg abhi-glitchhg commented Apr 25, 2022

We can use the generalized_box_iou function to calculate the generalized_box_iou_loss, here is my attempt for the same.

cc: @datumbox @pmeier

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

@abhi-glitchhg thanks for the contribution! :)

Marking as "Request Changes" to avoid accidental merges. Let's chat about this on the other thread linked below to decide a way forwards.

boxes2 = boxes2[None, :]
miouk = generalized_box_iou(boxes1, boxes2)[0][0]
else:
miouk = generalized_box_iou(boxes1, boxes2).diagonal()
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to be quite slow as noted at #5786 (comment)

Let's continue our discussion on the other thread just to avoid splitting the comments on various places.

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.

4 participants