Skip to content

Conversation

@rohitgr7
Copy link
Contributor

@rohitgr7 rohitgr7 commented Sep 30, 2020

What does this PR do?

Fixes #2891

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

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 🙃

@mergify mergify bot requested a review from a team September 30, 2020 18:45
@rohitgr7 rohitgr7 added the bug Something isn't working label Sep 30, 2020
@mergify mergify bot requested a review from a team October 1, 2020 08:32
Copy link
Collaborator

@Borda Borda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Borda Borda added the ready PRs ready to be merged label Oct 1, 2020
@mergify mergify bot requested a review from a team October 1, 2020 13:25
Copy link
Contributor

@awaelchli awaelchli left a 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

@mergify mergify bot requested a review from a team October 1, 2020 20:30
@rohitgr7
Copy link
Contributor Author

rohitgr7 commented Oct 1, 2020

@awaelchli I don't remember what was the workflow before 😅 but since both sanity check and validation uses the same val_progress_bar, for sanity check it calls the on_validation_start hook in run_evaluation which re-registers the val_progress_bar with the number of validation batches. Partial workflow explained here.

@codecov
Copy link

codecov bot commented Oct 1, 2020

Codecov Report

Merging #3751 into master will increase coverage by 4%.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master   #3751    +/-   ##
=======================================
+ Coverage      85%     89%    +4%     
=======================================
  Files         110     110            
  Lines        8539    8711   +172     
=======================================
+ Hits         7295    7792   +497     
+ Misses       1244     919   -325     

Copy link
Contributor

@williamFalcon williamFalcon left a 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:

@mergify mergify bot requested a review from a team October 2, 2020 11:20
@Borda Borda removed the ready PRs ready to be merged label Oct 2, 2020
@Borda Borda requested review from Borda and SkafteNicki October 2, 2020 11:27
Copy link
Contributor

@awaelchli awaelchli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@awaelchli awaelchli added ready PRs ready to be merged v1.0 allowed labels Oct 2, 2020
Copy link
Collaborator

@SkafteNicki SkafteNicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rohitgr7
Copy link
Contributor Author

rohitgr7 commented Oct 3, 2020

@williamFalcon is it good now??

@williamFalcon
Copy link
Contributor

much better... but are those tests dropped now? for checking iterable loaders?

@rohitgr7
Copy link
Contributor Author

rohitgr7 commented Oct 3, 2020

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
Copy link
Contributor

image

These lines. wondering why the are deleted

@rohitgr7
Copy link
Contributor Author

rohitgr7 commented Oct 4, 2020

@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?

@williamFalcon
Copy link
Contributor

ok got it. i see, thanks

@williamFalcon williamFalcon merged commit a628d18 into Lightning-AI:master Oct 4, 2020
@rohitgr7 rohitgr7 deleted the bugfix/sanity_check branch October 4, 2020 12:35
@awaelchli
Copy link
Contributor

@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?

yes please, if these were removed by accident, we need to add the assertions back.
These checks make sure that num sanity val steps lead to the correct number of steps with multiple dataloaders.

@rohitgr7
Copy link
Contributor Author

rohitgr7 commented Oct 4, 2020

yes please, if these were removed by accident, we need to add the assertions back.
These checks make sure that num sanity val steps lead to the correct number of steps with multiple dataloaders.

ok will add them back ✌️

@Borda Borda added this to the 0.10.0 milestone Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready PRs ready to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The total number of batches shows by the progress bar of the sanity check is wrong

5 participants