mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat(server): do not parse lora fromt client-side prompts (#1083)
This commit is contained in:
1 parent
6888fcb581
commit
15d0f82760
2 files changed
+5
-2
No files matched your search
@@ -1349,6 +1349,9 @@ struct SDGenerationParams {
|
||||
}
|
||||
|
||||
void extract_and_remove_lora(const std::string& lora_model_dir) {
|
||||
if (lora_model_dir.empty()) {
|
||||
return;
|
||||
}
|
||||
static const std::regex re(R"(<lora:([^:>]+):([^>]+)>)");
|
||||
static const std::vector<std::string> valid_ext = {".pt", ".safetensors", ".gguf"};
|
||||
std::smatch m;
|
||||
|
||||
Reference in new issue
Block a user