Skip to content

throughput fps vs inference fps #1274

Discussion options

You must be logged in to vote

The throughput (batch size) ... is computed from the TimerCallback. It is calculated based on batch inference called by trainer.test. The one computed when benchmarking is complete uses the MockDataloader and calling predict for each image. Hope this is clear.

As for the difference in throughput from benchmarking, I am still trying to debug the issue. One major factor is that benchmarking uses MockDataloader which creates a dataset of random tensors with the same length as testing set. Performance numbers based on this are misleading as preprocessing time varies for each real test image. So the benchmarking script is showing a more optimistic value. Second, for some reason when the model …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by samet-akcay
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #620 on August 15, 2023 14:18.