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

Support command line params merging with .yaml #62

Open
Alicegaz opened this issue Jul 6, 2022 · 0 comments
Open

Support command line params merging with .yaml #62

Alicegaz opened this issue Jul 6, 2022 · 0 comments

Comments

@Alicegaz
Copy link

Alicegaz commented Jul 6, 2022

Specifying parameters through the command line works only if those parameters are in a config file used to run the train.py. So merging only works in a case of override, but not in the case of a union of .yaml config parameters and parameters from the command line.
Way to reproduce the issue:

python train.py -cp examples/configs -cn classification_cifar10 trainer.accelerator='cpu' task.params.freeze_backbone=true

Error Message:

Could not override 'task.params.freeze_backbone'.
To append to your config use +task.params.freeze_backbone=true
Key 'freeze_backbone' is not in struct
    full_key: task.params.freeze_backbone
    object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant