MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / parse_vae_config

Function parse_vae_config

src/models/ace_step/assets.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 return "dit_turbo_" + std::string(suffix);
124 }
125 if (selection.dit_model_path == "acestep-v15-base") {
126 return "dit_base_" + std::string(suffix);
127 }
128 throw std::runtime_error("ACE-Step package spec supports only acestep-v15-turbo and acestep-v15-base DiT variants");
129}
130
131void validate_selection(const AceStepModelSelection & selection) {
132 (void)dit_resource_id(selection, "config");
133}
134
135AceStepConfig parse_config(const assets::ResourceBundle & resources, const AceStepModelSelection & selection) {
136 AceStepConfig config;
137 config.diffusion = parse_diffusion_config(resources.parse_json(dit_resource_id(selection, "config")));
138 config.planner = parse_planner_config(resources.parse_json("lm_config"));

Callers 1

load_ace_step_assetsFunction · 0.85

Calls 2

optional_i64Function · 0.85
optional_i64_arrayFunction · 0.85

Tested by

no test coverage detected