Skip to content

Commit

Permalink
model_time_profile: reset_time_stats after initial warmup iteration s…
Browse files Browse the repository at this point in the history
…o it will not spoil timing
  • Loading branch information
vlad-nn committed Jan 8, 2025
1 parent cabf800 commit 0aafd2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions degirum_tools/inference_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def source():

with model:
model(frame) # run model once to warm up the system
model.reset_time_stats()

# run batch prediction
t = Timer()
Expand Down

0 comments on commit 0aafd2a

Please sign in to comment.