-
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
Support OmegaConf in Lightning #1883
Conversation
Hello @Darktex! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-05-22 15:00:06 UTC |
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 just fix the formatting comment
How does this PR play with this discussion: #1871? |
let’s add support for this now while we work out a good long-term solution. Thanks for the PR! |
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.
need to add loading from DictConfig
@Borda Can you explain your comment a bit more? I don't understand the issue |
|
save the DictConfig to hparms.yaml and load it need to do! |
This pull request is now in conflict... :( |
I'm editing this from the WebUI so the experience is... uh... improvable? :D But hopefully this should do the trick |
I could add a test for this here https://github.com/PyTorchLightning/pytorch-lightning/blob/master/tests/trainer/test_trainer.py#L29 but it would require to add omegaconf as a dep. What do you guys think? |
Codecov Report
@@ Coverage Diff @@
## master #1883 +/- ##
======================================
Coverage 88% 88%
======================================
Files 74 74
Lines 4603 4608 +5
======================================
+ Hits 4062 4069 +7
+ Misses 541 539 -2 |
we can add as a test dep but let’s keep it out of the main requirements. we already do this with the loggers as well |
Lightning hparams were recently changed to support only dicts and ArgParse namespaces. This diff (re)introduces compatibility with OmegaConf DictConfig, which is the type of config that Hydra uses.
This pull request is now in conflict... :( |
@Darktex how is it going, mind finish it? it seems that Will was asking for some tests... |
Looks like we don't need this anymore after #1896 landed |
@Darktex i assume this means omegaconf is now supported after we generalized the init? |
Lightning hparams were recently changed to support only dicts and ArgParse namespaces. This diff (re)introduces compatibility with OmegaConf DictConfig, which is the type of config that Hydra uses.
What does this PR do?
Fixes #1880.