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

Function resolve_model_root

src/models/ace_step/loader.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace engine::models::ace_step {
13namespace {
14
15AceStepModelSelection selection_from_request(const runtime::ModelLoadRequest & request) {
16 AceStepModelSelection selection;
17 if (const auto it = request.options.find("ace_step.dit_model_path"); it != request.options.end()) {
18 selection.dit_model_path = it->second;
19 return selection;
20 }
21 std::string model_name = request.model_path.filename().generic_string();
22 std::transform(model_name.begin(), model_name.end(), model_name.begin(), [](unsigned char ch) {
23 return static_cast<char>(std::tolower(ch));
24 });

Callers 5

discover_config_assetsFunction · 0.70
discover_weight_assetsFunction · 0.70
can_loadMethod · 0.70
inspectMethod · 0.70
loadMethod · 0.70

Calls 2

is_existing_directoryFunction · 0.85
is_existing_fileFunction · 0.85

Tested by

no test coverage detected