-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix val_progress_bar total with num_sanity_val_steps #3751
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
Fix val_progress_bar total with num_sanity_val_steps #3751
Conversation
Borda
left a comment
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.
LGTM
awaelchli
left a comment
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.
Could you briefly explain why we need the new bool flag after refactors and not before? Thanks
|
@awaelchli I don't remember what was the workflow before 😅 but since both sanity check and validation uses the same |
Codecov Report
@@ Coverage Diff @@
## master #3751 +/- ##
=======================================
+ Coverage 85% 89% +4%
=======================================
Files 110 110
Lines 8539 8711 +172
=======================================
+ Hits 7295 7792 +497
+ Misses 1244 919 -325 |
williamFalcon
left a comment
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 don't add another variable...
use: if trainer.running_sanity_check:
awaelchli
left a comment
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.
nice
SkafteNicki
left a comment
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.
LGTM
|
@williamFalcon is it good now?? |
|
much better... but are those tests dropped now? for checking iterable loaders? |
|
Never added tests for iterable datasets here. Those are already present in the tests. This is just for tqdm progress bar total which was not working correctly for sanity check after refs. |
|
@williamFalcon these are redundant lines now since you removed some assertions here: b9f4e7c, not sure why. But these were important tests for sanity checks. Should I add them back with the updated API call in this PR if required? |
|
ok got it. i see, thanks |
yes please, if these were removed by accident, we need to add the assertions back. |
ok will add them back ✌️ |

What does this PR do?
Fixes #2891
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃