mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-12 21:38:58 +00:00
fix: fix multi loras prompt parse
This commit is contained in:
parent
176a00b606
commit
0d9b801aaa
@ -285,7 +285,7 @@ std::pair<std::unordered_map<std::string, float>, std::string> extract_and_remov
|
||||
filename2multiplier[filename] += multiplier;
|
||||
}
|
||||
|
||||
text = std::regex_replace(text, re, "");
|
||||
text = std::regex_replace(text, re, "", std::regex_constants::format_first_only);
|
||||
}
|
||||
|
||||
return std::make_pair(filename2multiplier, text);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user