You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using config_dicts in my ML pipeline as explained in the README.
I currently use the CLI interface to run different ML models with different parameters.
Instead, is it possible to update a ConfigDict using a yaml config file generated via ConfigDict().to_yaml()?
The text was updated successfully, but these errors were encountered:
Chutlhu
changed the title
Can overwrite a config_dict from yaml/json file?
Can update a config_dict from yaml/json file?
Oct 7, 2024
importos.pathasospfromomegaconfimportOmegaConfFLAGS_DEF= {}
condig_root_name="src.config"forflag_valuesinFLAGS.get_flags_for_module(condig_root_name):
# NOTE xk: flag_values.name is the key, flag_values.value is the ConfigDict, which has `to_dict`, `to_yaml` methods.FLAGS_DEF[flag_values.name] =flag_values.valueconfig=OmegaConf.create({k: v.to_dict() fork, vinFLAGS_DEF.items()})
# save configconfig_path=osp.join(config.main.ckpt_dir, "config.yaml")
OmegaConf.save(config=config, f=config_path)
Hi all, thank you for this nice library.
I am using config_dicts in my ML pipeline as explained in the README.
I currently use the CLI interface to run different ML models with different parameters.
Instead, is it possible to update a ConfigDict using a yaml config file generated via ConfigDict().to_yaml()?
The text was updated successfully, but these errors were encountered: