rich_utils
enforce_tags(cfg, save_to_file=False)
Prompts user to input tags from command line if no tags are provided in config.
:param cfg: A DictConfig composed by Hydra.
:param save_to_file: Whether to export tags to the hydra output folder. Default is False.
Source code in meds_torch/utils/rich_utils.py
print_config_tree(cfg, print_order=('data', 'model', 'callbacks', 'logger', 'trainer', 'paths', 'extras'), resolve=False, save_to_file=False)
Prints the contents of a DictConfig as a tree structure using the Rich library.
:param cfg: A DictConfig composed by Hydra.
:param print_order: Determines in what order config components are printed. Default is ("data", "model",
"callbacks", "logger", "trainer", "paths", "extras").
:param resolve: Whether to resolve reference fields of DictConfig. Default is False.
:param save_to_file: Whether to export config to the hydra output folder. Default is False.