luluxxx commited on
Commit
7877a65
1 Parent(s): 6e10aa8

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -399,7 +399,7 @@ class AnimateDiffControlNetPipeline(
399
 
400
  # Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline.prepare_ip_adapter_image_embeds
401
  def prepare_ip_adapter_image_embeds(
402
- self, ip_adapter_image, ip_adapter_image_embeds, device, num_images_per_prompt, do_classifier_free_guidance
403
  ):
404
  if ip_adapter_image_embeds is None:
405
  if not isinstance(ip_adapter_image, list):
@@ -978,7 +978,7 @@ class AnimateDiffControlNetPipeline(
978
 
979
  if ip_adapter_image is not None:
980
  image_embeds = self.prepare_ip_adapter_image_embeds(
981
- ip_adapter_image, ip_adapter_image_embeds, device, batch_size * num_videos_per_prompt, do_classifier_free_guidance
982
  )
983
 
984
  if isinstance(controlnet, ControlNetModel):
 
399
 
400
  # Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline.prepare_ip_adapter_image_embeds
401
  def prepare_ip_adapter_image_embeds(
402
+ self, ip_adapter_image, ip_adapter_image_embeds, device, num_images_per_prompt
403
  ):
404
  if ip_adapter_image_embeds is None:
405
  if not isinstance(ip_adapter_image, list):
 
978
 
979
  if ip_adapter_image is not None:
980
  image_embeds = self.prepare_ip_adapter_image_embeds(
981
+ ip_adapter_image, ip_adapter_image_embeds, device, batch_size * num_videos_per_prompt
982
  )
983
 
984
  if isinstance(controlnet, ControlNetModel):