gcc path fix

This commit is contained in:
Concedo 2026-03-10 21:40:32 +08:00
parent b06dd2606e
commit c8800ed16c

View file

@ -1058,7 +1058,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
spec.path = sd_params->lora_paths[i].c_str();
spec.multiplier = multiplier;
lora_specs.push_back(spec);
std::string lora_name = std::filesystem::path(sd_params->lora_paths[i]).stem();
std::string lora_name = std::filesystem::path(sd_params->lora_paths[i]).stem().string();
lora_meta << "<lora:" << lora_name << ":" << multiplier << ">";
}
}