Skip to content

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