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

Some doubt about the hnms output #1

Closed
ys0823 opened this issue May 31, 2020 · 0 comments
Closed

Some doubt about the hnms output #1

ys0823 opened this issue May 31, 2020 · 0 comments

Comments

@ys0823
Copy link

ys0823 commented May 31, 2020

Thank's for your work, I try hnms in my object detection predictions.
`import torch
from hnms import MultiHNMS
hnms = MultiHNMS(num=1, alpha=0.7)

center x, center y, width, height

xywh = [[10, 20, 10, 20], [10, 20, 10, 20], [30, 6, 4, 5]]
conf = [0.9, 0.8, 0.9]
xywh = torch.tensor(xywh).float()
conf = torch.tensor(conf)
keep = hnms(xywh, conf)
print(keep)`

why the output keep is one tensor number, I think it should be some indexes of keeped boxes.

@ys0823 ys0823 closed this as completed May 31, 2020
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

1 participant