-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
list of a default config #1926
Comments
hi @de-gozaru would something like the following works?
then in your application, you can convert |
Another option is to pass a list of config names at the command line:
Passing a list from omegaconf import DictConfig, OmegaConf
import hydra
@hydra.main(config_path="conf", config_name="config")
def my_app(cfg: DictConfig) -> None:
print(OmegaConf.to_yaml(cfg))
if __name__ == "__main__":
my_app() # conf/config.yaml
defaults:
- dataset@trainset: ???
trainset: ??? # conf/dataset/imagenet.yaml
imagenet:
foo: bar # conf/dataset/pascal.yaml
pascal:
baz: quz As an alternative to passing a list of config names at the command-line (as in the example above), you could pass a list of config names in the # conf/config.yaml
defaults:
- dataset@trainset: [imagenet, pascal] This is documented in the Defaults List page of the Hydra docs (see the note about "CONFIG_NAMES"). Edit: there is further documentation on passing a list of config names in Selecting multiple configs from a Config Group |
Hi,
I'm using Hydra 1.1 for deep learning application.
My conf directory has the following architecture:
my
config.yaml
has the following structure:What I want to do is that, sometimes I want to use multiple train dataset, something like this
is this possible with the current version? if not, is there a possible turnaround I can use?
I know that an
append
function is scheduled to be added in version 1.3.Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: