mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-29 02:31:17 +00:00
Fixed issue with prompt token replace adding more than one replacement
This commit is contained in:
@@ -312,6 +312,7 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
||||
if self.trigger_word is not None and not is_reg:
|
||||
prompt = self.sd.inject_trigger_into_prompt(
|
||||
prompt,
|
||||
trigger=self.trigger_word,
|
||||
add_if_not_present=True,
|
||||
)
|
||||
conditioned_prompts.append(prompt)
|
||||
|
||||
Reference in New Issue
Block a user