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

Batch computation for IoU Loss #50

Open
Steven-m2ai opened this issue Nov 22, 2022 · 2 comments
Open

Batch computation for IoU Loss #50

Steven-m2ai opened this issue Nov 22, 2022 · 2 comments

Comments

@Steven-m2ai
Copy link

Steven-m2ai commented Nov 22, 2022

Hello,

Thank you for your work. I have a question regarding the demo / the functionality of the cal_giou and cal_giou_3d functions.

It looks like from the demo the inputs must be the same size. that is, [Batch, Number of boxes, 7] for the 3D case.
However, if we have say 2 ground truth boxes in an image, and our model predicts 100 bounding boxes [B, 100,7], is there a way to compute the IoU between each of the boxes to the 2 ground truth boxes? [B,100,7] and [B,2,7] comparison.

--> meaning every predicted box from the 100 is compared to each of the 2 ground truth boxes. thus for any batch, there are 200 comparisons made

Thanks for your time

@CloudRider-pixel
Copy link

Hi @Steven-m2ai ,
Did you manage to do that?

@jbohnslav
Copy link

I'm also interested in the case where the number of boxes do not match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants