-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Set total number of batches in progress bar while testing #425
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please provide more information to reproduce not showing the total number of iterations, Thx
|
Yeah, here is a dummy example: If you run this code with current master you will obtain the following output: Whereas with this PR you will obtain: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and it looks good to me, @williamFalcon
|
I have just realized that it is slightly more complicated. This PR only fixes the problem when It will end with We can reset the progress bar in that case too and it will show correct total number of iterations. But then this testing progress bar will show old postfixes from the training. So it seems that actually we should distinguish between |
|
maybe think about moving from |
|
let’s keep it tqdm for now. we can consider this in a separate PR |
|
should we just have the following bar setup? each shown on top of each other depending on what's happening? |
|
Yes, it sounds good. I like your idea that main train bar should have total number of batches (train + val) and that validation bar just pop ups as additional bar. And I just point out that test bar seems to be totally independent of the main train bar. |
|
@kuynzereb thanks! want to do a PR for splitting the bars? |
|
Yeah, I can give it a try! |
Now progress bar doesn't show total number of batches in test mode. This PR fixes it.