1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00
This commit is contained in:
Aryan
2024-09-07 14:53:32 +02:00
parent 4e81d5af60
commit ad2f35fc4f

View File

@@ -644,7 +644,7 @@ class CogVideoXPipeline(DiffusionPipeline, CogVideoXLoraLoaderMixin):
do_classifier_free_guidance = guidance_scale > 1.0
# 3. Encode input prompt
lora_scale = self.attention_kwargs.get("scale", None) if self.joint_attention_kwargs is not None else None
lora_scale = self.attention_kwargs.get("scale", None) if self.attention_kwargs is not None else None
prompt_embeds, negative_prompt_embeds = self.encode_prompt(
prompt,
negative_prompt,