Fix visual progress bar bug / properly reset progress bar#4579
Fix visual progress bar bug / properly reset progress bar#4579
Conversation
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://pytorch-lightning.readthedocs.io/en/latest/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Slack. Thank you for your contributions. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://pytorch-lightning.readthedocs.io/en/latest/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Slack. Thank you for your contributions. |
|
This pull request is going to be closed. Please feel free to reopen it create a new from the actual master. |
Codecov Report
@@ Coverage Diff @@
## master #4579 +/- ##
======================================
Coverage 93% 93%
======================================
Files 135 135
Lines 10003 10006 +3
======================================
+ Hits 9326 9329 +3
Misses 677 677 |
|
would be fine to merge it after #5495 |
* reset * fix reset * changelog * update chlog * typing Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
What does this PR do?
Fixes #4567
A visual bug occurs at the very initial state of the progress bar:
It shows "0 it" and the total is not displayed. But we can make it show just 0% like so:
by calling the
tqdm.reset()method instead of manually setting the total amount.This is very hard to spot, because the progress bar usually updates very fast. You have to add a
time.sleepto the training loop to observe it.