MCPcopy Create free account
hub / github.com/Audio-AGI/AudioSep / parse_yaml

Function parse_yaml

utils.py:61–72  ·  view source on GitHub ↗

r"""Parse yaml file. Args: config_yaml (str): config yaml path Returns: yaml_dict (Dict): parsed yaml file

(config_yaml: str)

Source from the content-addressed store, hash-verified

59
60
61def parse_yaml(config_yaml: str) -> Dict:
62 r"""Parse yaml file.
63
64 Args:
65 config_yaml (str): config yaml path
66
67 Returns:
68 yaml_dict (Dict): parsed yaml file
69 """
70
71 with open(config_yaml, "r") as fr:
72 return yaml.load(fr, Loader=yaml.FullLoader)
73
74
75def get_audioset632_id_to_lb(ontology_path: str) -> Dict:

Callers 5

get_data_moduleFunction · 0.90
trainFunction · 0.90
evalFunction · 0.90
build_audiosepFunction · 0.90
get_ss_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected