referencing files without defaults, dealing with list of files
See original GitHub issueHi,
Let’s say I have the following config directory.
trainer/
| optim/
| sgd.yaml
| adam.yaml
....
| models/
| unet.yaml
| restnet.yaml
....
trainer_config.yaml
I would like to compose my trainer_config.yaml
as follows:
optim:
- sgd
- adam
models:
- unet
- resnet
I encounter two problems doing this:
-
I see that hydra doesn’t let me instantiate paths to files if keys are not listed under
defaults
. Is there a way to compose configurations from multiple files without usingdefaults
(the way I mentioned above)? -
Say to counter this problem I use
defaults
, then I would like my config to look like:
defaults:
optim:
- sgd
- adam
models:
- unet
- resnet
since my model contains two sub-models or it uses multiple optimizers. It seems that defaults
does not recognize a list of config files. What is the correct way to configure such a system? Am I missing something?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
c# - How to read existing text files without defining path
To do that, right click on the file that is in your project under the solution explorer (test1. txt), select properties and then...
Read more >Naming Files, Paths, and Namespaces - Win32 apps
Naming Conventions · Use a period to separate the base file name from the extension in the name of a directory or file....
Read more >How to list all files in a directory with absolute paths
You can use find. Assuming that you want only regular files, you can do: find /path/to/dir -type f > listOfFiles.list. You can adjust...
Read more >Working With Files - Gradle User Manual
Copying directory hierarchies. You may have a need to copy not just files, but the directory structure they reside in as well. This...
Read more >Workflow syntax for GitHub Actions
You must store workflow files in the .github/workflows directory of your repository. ... For more information, see "Managing GitHub Actions settings for a ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sankethvedula, this link is a part of the basic tutorial. I strongly suggest that you read the entire thing 😃
Closing, feel free to continue this on the chat.
Hi Omry. thanks for the response. The link you’ve sent is helpful, I’ll try to continue this discussion on the Zulip channel – probably that’s a better place to discuss this 😃