mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
Fix negative prompt not working when token>75
This commit is contained in:
@@ -705,7 +705,7 @@ class PipelineLike():
|
|||||||
if negative_scale is not None:
|
if negative_scale is not None:
|
||||||
_, real_uncond_embeddings, _ = get_weighted_text_embeddings(
|
_, real_uncond_embeddings, _ = get_weighted_text_embeddings(
|
||||||
pipe=self,
|
pipe=self,
|
||||||
prompt=[""]*batch_size,
|
prompt=prompt, # こちらのトークン長に合わせてuncondを作るので75トークン超で必須
|
||||||
uncond_prompt=[""]*batch_size,
|
uncond_prompt=[""]*batch_size,
|
||||||
max_embeddings_multiples=max_embeddings_multiples,
|
max_embeddings_multiples=max_embeddings_multiples,
|
||||||
clip_skip=self.clip_skip,
|
clip_skip=self.clip_skip,
|
||||||
|
|||||||
Reference in New Issue
Block a user