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
Increase FPS #91
Comments
Hi mcdonasd, Thanks for reaching out! Are you downscaling the image before providing it to the neural network? I would recommend downscaling to 224x224 or 256x256 if you are trying to detect people within a few meters. The output can be re-scaled to match your original image dimensions. Higher resolutions may work, but will change the effective size of objects you detect. The higher resolution the image, the smaller the size of object you will detect, and slower the model will run. It is best to tune the input shape for your application. For example, a human-computer interaction robot probably only needs 224x224, monitoring pose of a crowd at a distance, something much higher. Please let me know if this helps, or you run into any issues. Best, |
Thank you, I will implement your recommendations and keep you posted. Since I posted, I realized implementing the recommendations in Issue #79 slowed video playback significantly. I am still working thru how to save the keypoints to a dataframe while minimizing the performance impact. I would welcomed ideas / recommendations. Thank you! |
@jaybdub I have confirmed that I am downscaling to 224x224. In this application, we need to only detect the largest person in the image. I have modified the DrawObjects class to map joints to a common standard I am using as follows:
|
Speed was significantly improved when I used a dictionary instead of dataframe to remap the joints. |
Hi @mcdonasd, |
I am using trt_pose on a system with i5 cpu and GTX 1660 Super GPU. I am currently only getting 9 fps for an 1080 x 1920 video. Any ideas for how to improve FPS?
The text was updated successfully, but these errors were encountered: