Skip to content

How to change setting for object which is inside another obejct? #2658

Answered by aretor
dvstter asked this question in Q&A
Discussion options

You must be logged in to vote

I have recently started using Hydra and I am pretty interested in this pattern. As a starting idea, I would create the following folder tree

config
| - cfg.yaml
| - agent
    | - default.yaml
    | - encoder
        | - resnet50.yaml
        | - resnet151.yaml

default.yaml contains

defaults:
  - encoder: null
_target__: xxx.xxxAgent

if you need the encoder name, you may define a field in resnet50.yaml or resnet151.yaml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dvstter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants