-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
C API for batch inference? #7541
Comments
@AlexeyAB can you help us out with this? |
It was added for Pytorch example, but currently it is commented because as I remember there were some issues (with NMS which removes duplicates across different images in batch, while should remove only inside 1 image, or something else), so if you want, you can try to test and/or fix these issues.
It uses C functions:
There are several C-functions related to the batch-inference:
You can look at this code:
|
@AlexeyAB, is there a working C API for batch inference?
I see what you recently wrote here about using OpenCV: #7487 (comment)
...but is there a way to pass multiple images to darknet and have it run inference on a batch size of 2, 4, etc? Does it work?
Looking through the darknet.h file, I can see
load_network_custom()
that takes aint batch
parameter, and other APIs that look promising such asnetwork_predict_batch()
. Before I sink time into trying this, I thought I'd check with you to see if I'm on the right track and if the API is known to work, or legacy code from a long time ago.The text was updated successfully, but these errors were encountered: