-
Notifications
You must be signed in to change notification settings - Fork 341
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
slow classifier #66
Comments
I have not seen a single image take that amount of time. How are you profiling? |
I am running guess.py and feeding it one image. I put time.time() before and after the line mentioned above (line 99 in guess.py) to measure the time. It takes almost a second executing that line. I have tried feeding batches and for a batch of 100 face images it took 5 seconds (50 ms per image). But for real time age/gender recognition i need to be able to process a frame with one or a few faces in less than 200 ms. this is how i measured time : |
You will definitely want to batch your images. Also you may want to look at some of the other tickets surrounding video processing. Several people seem to have modified Also you may be interested in this PR: #50 |
in guess.py this following line takes almost a second to predict the age or gender on a 1050Ti gpu:
batch_results = sess.run(softmax_output, feed_dict={images:image_batch.eval()})
I am feeding a batch of one image which includes a cropped face and it takes one second.
Any idea on how i can speed things up to create a realtime age/gender classifier that can work on camera streams?
The text was updated successfully, but these errors were encountered: