fixed issue with down block residuals when doing slider cfg on sdxl with t2i adapter assisted training

This commit is contained in:
Jaret Burkett
2023-10-01 07:32:48 -06:00
parent 085787b799
commit 560251a24f
2 changed files with 13 additions and 4 deletions

View File

@@ -542,8 +542,8 @@ def inject_trigger_into_prompt(prompt, trigger=None, to_replace_list=None, add_i
# add it to the beginning of the prompt
output_prompt = replace_with + " " + output_prompt
if num_instances > 1:
print(
f"Warning: {trigger} token appears {num_instances} times in prompt {output_prompt}. This may cause issues.")
# if num_instances > 1:
# print(
# f"Warning: {trigger} token appears {num_instances} times in prompt {output_prompt}. This may cause issues.")
return output_prompt