MCPcopy Create free account
hub / github.com/ace-step/ACE-Step / __init__

Method __init__

acestep/data_sampler.py:10–14  ·  view source on GitHub ↗
(self, root_dir=DEFAULT_ROOT_DIR)

Source from the content-addressed store, hash-verified

8
9class DataSampler:
10 def __init__(self, root_dir=DEFAULT_ROOT_DIR):
11 self.root_dir = root_dir
12 self.input_params_files = list(Path(self.root_dir).glob("*.json"))
13 self.zh_rap_lora_input_params_files = list(Path(ZH_RAP_LORA_ROOT_DIR).glob("*.json"))
14 self.zh_rap_lora_input_params_files += list(Path(ZH_RAP_LORA_ROOT_DIR).glob("*.json"))
15
16 def load_json(self, file_path):
17 with open(file_path, "r", encoding="utf-8") as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected