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

Usage of poly_nms_gpu #60

Open
DrRyanHuang opened this issue Aug 25, 2022 · 4 comments
Open

Usage of poly_nms_gpu #60

DrRyanHuang opened this issue Aug 25, 2022 · 4 comments

Comments

@DrRyanHuang
Copy link

DrRyanHuang commented Aug 25, 2022

Hi, thx for your very helpful code.
Could you please give a demo of poly_nms_gpu?

@yoloyash
Copy link

Hello, can you explain how to use it please?

@dingjiansw101
Copy link
Collaborator

The function can be found at this link
https://github.com/CAPTAIN-WHU/DOTA_devkit/blob/master/poly_nms_gpu/nms_wrapper.py
The interface of poly_nms_gpu is the same as py_cpu_nms_poly https://github.com/CAPTAIN-WHU/DOTA_devkit/blob/99388551054be9a6dabb01c8bb2a7eb562d57b4f/ResultMerge.py#LL17C1-L17C1

@yoloyash
Copy link

yoloyash commented May 11, 2023

@dingjiansw101 Thanks a lot for your reply. It's working now. However, it's very slow for me. Is there anything I'm doing wrong or missing out? Trying to follow yolov5_obb implementation and the nms per batch exceeds 50-60 seconds in some cases. I'm using it as follows. [cpu:Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz, gpu: Nvidia Tesla T4]
from poly_nms_gpu import poly_nms
poly_nms.poly_gpu_nms(dets, thresh=0.5, device_id=0)

@dingjiansw101
Copy link
Collaborator

Actually, I recommend you use py_cpu_nms_poly. GPU version is not always faster.

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