From 0d9b801aaa747943711517a5a684b57771cef945 Mon Sep 17 00:00:00 2001 From: leejet Date: Sun, 19 Nov 2023 23:19:37 +0800 Subject: [PATCH] fix: fix multi loras prompt parse --- stable-diffusion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable-diffusion.cpp b/stable-diffusion.cpp index 1a0b05d..b4604b0 100644 --- a/stable-diffusion.cpp +++ b/stable-diffusion.cpp @@ -285,7 +285,7 @@ std::pair, 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);