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 inference #3

Closed
nosound2 opened this issue Feb 14, 2020 · 2 comments
Closed

Batch inference #3

nosound2 opened this issue Feb 14, 2020 · 2 comments

Comments

@nosound2
Copy link

Thank you for the great code!

Is batch prediction possible (many images at once), any plans to add it? Do you think we can expect a speed up?

Thanks,
Zahar

@hukkelas
Copy link
Owner

Thanks!
Currently, this is not supported as we do not set a fixed width for the input image.

If you have a fixed input image size, this should definitely give you a speed up. But it's a case-by-case basis.

I might look into this at a later time, but can't promise anything :)

@hukkelas
Copy link
Owner

hukkelas commented Apr 5, 2020

Hey,
Not sure if it's still relevant for you, but I've added support for semi-batched inference.
neural network is run in batched fashion, but non-maxima suppression / confidence score thresholding is still done per-image basis.

But it's all abstracted away, see:
https://github.com/hukkelas/DSFD-Pytorch-Inference#batched-inference

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

2 participants