Multiple default entries from the same folder #2753
-
Hi sorry for the potentially silly question, I just discovered the tool (which seems to be great !) I have a process which uses two detections. The detection itself has a set of presets
detection/easy.yaml box_threshold: 0.2 detection/hard.yaml box_threshold: 0.5 If I only have one detection happening, I can have have the following config.yaml : defaults:
- detection: easy
- _self_ But what if I want two detections in my process that could use a different set of defaults ? Would be possible to have something like defaults:
- first_detection: detection/easy # just a pseudo syntaxe to show what I want to do
- second_detection: detection/hard
- _self_ The idea would be to have a redirection so that first_detection does not look into "first_detection" folder but in "detection", same for "second_detection" For now I managed to have the desired effect by simply having a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, use something like defaults:
- detection@first_detection: easy
- detection@second_detection: hard
- _self_ Relevant doc: https://hydra.cc/docs/advanced/overriding_packages/#using-a-config-group-more-than-once |
Beta Was this translation helpful? Give feedback.
-
Hey, I just applied the solution and it works great, except when overriding the group
I did not succeed in applying this method, but simply calling Is this the right behaviour ? According to the doc, I though it would be Anyway, I am glad the seemingly working command is much more readable 😄 |
Beta Was this translation helpful? Give feedback.
Yes, use something like
Relevant doc: https://hydra.cc/docs/advanced/overriding_packages/#using-a-config-group-more-than-once