-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat(wandb): log models as artifacts #6231
Conversation
Hello @borisdayma! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-05-27 09:40:00 UTC |
Codecov Report
@@ Coverage Diff @@
## master #6231 +/- ##
=======================================
- Coverage 92% 88% -5%
=======================================
Files 199 199
Lines 12962 12995 +33
=======================================
- Hits 11967 11409 -558
- Misses 995 1586 +591 |
I started from my other ongoing PR so you can see the changes here |
The history looks a bit messed up so I'll try to fix it or force push from a clean master state (since there's only one real commit so far). |
fb7041e
to
bfb8872
Compare
pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py
Outdated
Show resolved
Hide resolved
Here are examples:
The idea is to avoid putting too much metadata that would hide more meaningful data. |
Here is current behavior:
We can see in the 2nd example that 3 model were logged:
This would let users access the Ideally in a future PR, it would be nice to have an option |
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.
I like it. Just some more comments :)
Will the artifacts be uploaded and updated continuously? E.g. will I at every point of the training have a best model artifact at wandb and if I get a new one it will replace the old one?
pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py
Outdated
Show resolved
Hide resolved
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 !
self.logger.experiment.log({ | ||
"generated_images": [wandb.Image(some_img, caption="...")] | ||
self.log({ | ||
"generated_images": [wandb.Image(some_img, caption="...")] |
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.
self.log_images
could be the API used to log every image related artefacts.
…lightning into feat_artifacts
Hi guys, just checking if anything else is needed from me. |
Apologize for the late reply Boris! Thanks again for your contribution, and sorry we haven't been able to address quicker. |
Hi, I'm just checking if there's any update or if I can do anything from my side. |
Hey guys, just wondering if you would be ok using my current version? Right now I just need a callback for |
@awaelchli how is it going here, I saw you had most comments so mind giving your decision? 🐰 |
…lightning into feat_artifacts
for more information, see https://pre-commit.ci
Ok I resolved conflicts |
Hi, just checking if i need to do anything else on my side? |
Hey guys, just checking on the progress here. |
…lightning into feat_artifacts
Thanks guys!!! |
What does this PR do?
Fixes #4903
should be merged after #5931
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃