mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 11:26:34 +00:00
fix: fix multi loras prompt parse
This commit is contained in:
1 parent
176a00b606
commit
0d9b801aaa
1 file changed
+1
-1
@@ -285,7 +285,7 @@ std::pair<std::unordered_map<std::string, float>, std::string> extract_and_remov
|
|||||||
filename2multiplier[filename] += multiplier;
|
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);
|
return std::make_pair(filename2multiplier, text);
|
||||||
|
|||||||
Reference in new issue
Block a user