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

Improve iterator ETA #2775

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Conversation

RunDevelopment
Copy link
Member

Changes:

  • Use a mix between an exponential and harmonic falloff to calculate a weighted average that favors recent samples. I also capped it at 100 samples to (1) ignore very old samples and (2) keep the computational overhead to a minimum.
    Fixes Video frame iterator ETA not recalculating when load changes #2324
  • Use time.monotonic() to measure time.
  • Move logic for keeping track of time into _IterationTimer class.
  • Account for pauses when measuring time.
  • Don't let ETA continue to count down and show "Paused" instead when the execution is paused.
    image

@joeyballentine joeyballentine merged commit 2883c66 into chaiNNer-org:main Apr 9, 2024
17 checks passed
@RunDevelopment RunDevelopment deleted the impr-eta branch April 9, 2024 16: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.

Video frame iterator ETA not recalculating when load changes
2 participants