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

Add max ticks support for tickFPS computation #510

Merged
merged 2 commits into from Oct 21, 2021
Merged

Add max ticks support for tickFPS computation #510

merged 2 commits into from Oct 21, 2021

Conversation

tersekmatija
Copy link
Contributor

Currently, FPS is calculated as the time difference between the first and the last tick in the array divided by the length of the array. Default queue size is set to 100, which is problematic in 2 stage pipelines with slower 2nd NN, as the speed of the faster NN might prevail, resulting in higher FPS estimation of the pipeline.

This PR adds flag maxTicks = 100 to the FPSHandler __init__. When initializing the FPSHandler, a lower value can be provided to reduce the effect of the first NN. Using maxTicks = 2 should result in real time FPS.

@VanDavv VanDavv merged commit e0f4c95 into main Oct 21, 2021
@VanDavv VanDavv deleted the sdk_fps_update branch October 21, 2021 15:19
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

Successfully merging this pull request may close these issues.

None yet

2 participants