fb-hydra Questions
4
Solved
Recently I have started to use hydra to manage the configs in my application. I use Structured Configs to create schema for .yaml config files. Structured Configs in Hyda uses dataclasses for type ...
3
Solved
I have a very simple Python script:
import hydra
from omegaconf import DictConfig, OmegaConf
@hydra.main(version_base="1.3", config_path=".", config_name="config")
d...
6
Solved
Let's say we have following setup (copied & shortened from the Hydra docs):
Configuration file: config.yaml
db:
driver: mysql
user: omry
pass: secret
Python file: my_app.py
import hydra...
Paquette asked 13/3, 2020 at 16:26
3
Solved
Assuming I prevent Hydra from changing the current working directory, how can I still retrieve the job's output directory (i.e., the folder Hydra created for storing the results of the particular j...
3
Solved
I have a main config file, let's say config.yaml:
num_layers: 4
embedding_size: 512
learning_rate: 0.2
max_steps: 200000
I'd like to be able to override this, on the command-line, with another fil...
2
Solved
I'd like to convert a OmegaConf/Hydra config to a nested dictionary/list. How can I do this?
2
I wonder what are the advantages of using Hydra to manage my configuration files,
versus loading .yaml configuration file directly (using import yaml)?
Guilford asked 6/10, 2022 at 17:27
1
Solved
I'm trying to install Hydra 2.5 on a Windows 10 system. I have Visual Studio Build Tools 2022 installed with the desktop C++ development option. When I use pip I get the error attached below. I've ...
Salazar asked 7/8, 2022 at 21:6
2
Solved
I'm using hydra to log hyperparameters of experiments.
@hydra.main(config_name="config", config_path="../conf")
def evaluate_experiment(cfg: DictConfig) -> None:
print(Omega...
1
Solved
I am trying to write a hierarchical configuration structure such that config files in the inner directories inherit from the config files in the outer directories. For example, in the following sce...
Altercate asked 27/5, 2021 at 3:11
3
I know that I can change the working dir in config by setting hydra.run.dir=XXX from the command line.
But how to do it properly from script w/o using CLI arguments in a way that even the logs are ...
1
Solved
I'm using pipreqs for generating requirements.txt. I started using hydra package (see https://hydra.cc/ or hydra-core package on PyPI). So I would like pipreqs to add hydra-core dependency automati...
Sig asked 9/4, 2021 at 14:0
1
Solved
I'd like to add a key + value after my Hydra Config is loaded. Essentially I want to run my code and check if a gpu is available or not. If it is, log the device as gpu, else keep the cpu.
Essentia...
1
© 2022 - 2024 — McMap. All rights reserved.