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

test_object_detection_function slow #544

Closed
amincheloh opened this issue Apr 19, 2017 · 2 comments
Closed

test_object_detection_function slow #544

amincheloh opened this issue Apr 19, 2017 · 2 comments

Comments

@amincheloh
Copy link
Contributor

Hi,
Thanks for good library. I have been using the dlib library for a few week particularly the object detection. fhog_object_detection_ex example the training time is very fast I am very impressed. however, testing time is slow. After looking in dlib source I think because of test_object_detection_function use only single core CPU.
Do you have any suggestion to improve testing speed?

@e-fominov
Copy link
Contributor

First of all, have you read this? http://dlib.net/faq.html#Whyisdlibslow

Anyways, test_object_detection_function takes a lot of time because it makes a lot of computations with running detector over all images in test dataset and its performance is limited by trained detector. The larger detector you will train, the larger is dataset- the more time it will take
I recommend you to measure the performace of detector separate from test_object_detection_function - this will make you understand the situation

The overall FHOG detector performance depends on

  1. image resolution
  2. pyramid size
  3. detection window size
  4. detector filters count

And yes, it is not multi-threaded, but you can run detector yourself from multiple threads by creating several instances of detector - one per thread. Calling same detector from different threads is not safe

@amincheloh
Copy link
Contributor Author

Yes, I read the FAQ, and just move the other higher perf PC.

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