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

Removed a redundant warning with ModelCheckpoint(monitor=None) callback #9875

Merged
merged 55 commits into from
Oct 11, 2021
Merged

Removed a redundant warning with ModelCheckpoint(monitor=None) callback #9875

merged 55 commits into from
Oct 11, 2021

Conversation

Programmer-RD-AI
Copy link
Contributor

@Programmer-RD-AI Programmer-RD-AI commented Oct 9, 2021

Fixes

What does this PR do?

Fixes #9868

Does your PR introduce any breaking changes? If yes, please list them.

None

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs) Warning recommend save_top_k=None but it crash training #9868
  • 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?
  • Did you make sure to update the documentation with your changes? (if necessary) I don't think this small fix needs to be updated in the docs
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

##Changes
pytorch_lightning/callbacks/model_checkpoint.py
150 Line Change
432 Line Change

Check the code that was changed in the files changed tab of this pull request.

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Yes, It was a new experience for me for contributing to a project.
It was fun,
And I am looking forward to helping the PyTorch Community.

Regards,
Ranuga

Programmer-RD-AI and others added 30 commits October 6, 2021 20:25
@awaelchli
Copy link
Contributor

awaelchli commented Oct 10, 2021

@Programmer-RD-AI Please keep the PR template :) (see checklists)

@awaelchli awaelchli changed the title #9868 bug solve Fix save_top_k warning in ModelCheckpoint callback Oct 10, 2021
@codecov
Copy link

codecov bot commented Oct 10, 2021

Codecov Report

Merging #9875 (4a51af5) into master (2f31328) will decrease coverage by 4%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #9875    +/-   ##
=======================================
- Coverage      93%     89%    -4%     
=======================================
  Files         178     178            
  Lines       15620   15649    +29     
=======================================
- Hits        14477   13868   -609     
- Misses       1143    1781   +638     

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
@Programmer-RD-AI
Copy link
Contributor Author

@Programmer-RD-AI Please keep the PR template :) (see checklists)

ok @awaelchli

Regards

@Programmer-RD-AI
Copy link
Contributor Author

Fixes

What does this PR do?

Fixes #9868

Does your PR introduce any breaking changes? If yes, please list them.

None

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs) Warning recommend save_top_k=None but it crash training #9868
  • 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?
  • Did you make sure to update the documentation with your changes? (if necessary) I don't think this small fix needs to be updated in the docs
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is welcome to review the PR. Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding upside_down_face

I am currently working on testing this locally.

Regards.

Copy link
Contributor

@tchaton tchaton 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 rohitgr7 changed the title Fix save_top_k warning in ModelCheckpoint callback Removed a redundant warning with ModelCheckpoint(monitor=None) callback Oct 11, 2021
@awaelchli awaelchli added the bug Something isn't working label Oct 11, 2021
@awaelchli awaelchli added this to the v1.4.x milestone Oct 11, 2021
@mergify mergify bot added the ready PRs ready to be merged label Oct 11, 2021
@SkafteNicki SkafteNicki enabled auto-merge (squash) October 11, 2021 14:09
@SkafteNicki SkafteNicki merged commit f915a8a into Lightning-AI:master Oct 11, 2021
rohitgr7 added a commit to Tshimanga/pytorch-lightning that referenced this pull request Oct 18, 2021
…back (Lightning-AI#9875)

* Update README.md

* Update README.md

* Create evaluation.py

* Update README.md

* Update evaluation.py

* Create evaluation.py

* Create evaluation.py

* Update evaluation.py

* Create nlp.py

* Update evaluation.py

* Create evaluation.py

* Update nlp.py

* Update nlp.py

* Update evaluation.py

* Create evaluation.py

* Update nlp.py

* Update nlp.py

* Update requirements.txt

* Update evaluation.py

* Create data_loader.py

* Update nlp.py

* Update evaluation.py

* Update data_loader.py

* Update nlp.py

* Update data_loader.py

* Update requirements.txt

* Update model_checkpoint.py

* Delete evaluation.py

* Delete data_loader.py

* Delete nlp.py

* Update requirements.txt

* Update model_checkpoint.py

* Update README.md

* Update pytorch_lightning/callbacks/model_checkpoint.py

* Update CHANGELOG.md

* Update test_model_checkpoint.py

* Update model_checkpoint.py

* update

* update

* chlog update

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
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.

Warning recommend save_top_k=None but it crash training
6 participants