Fix negative prompt not working when token>75

This commit is contained in:
Kohya S
2023-01-15 10:39:51 +09:00
parent 60e5793d5e
commit 48110bcb23

View File

@@ -705,7 +705,7 @@ class PipelineLike():
if negative_scale is not None:
_, real_uncond_embeddings, _ = get_weighted_text_embeddings(
pipe=self,
prompt=[""]*batch_size,
prompt=prompt, # こちらのトークン長に合わせてuncondを作るので75トークン超で必須
uncond_prompt=[""]*batch_size,
max_embeddings_multiples=max_embeddings_multiples,
clip_skip=self.clip_skip,