Update pipeline.py
Browse files- pipeline.py +1 -2
pipeline.py
CHANGED
@@ -862,7 +862,6 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
862 |
return image
|
863 |
|
864 |
@torch.no_grad()
|
865 |
-
# @replace_example_docstring(EXAMPLE_DOC_STRING)
|
866 |
def __call__(
|
867 |
self,
|
868 |
prompt: Union[str, List[str]] = None,
|
@@ -1278,7 +1277,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1278 |
else:
|
1279 |
control_model_input = latent_model_input
|
1280 |
controlnet_prompt_embeds = prompt_embeds
|
1281 |
-
controlnet_prompt_embeds = controlnet_prompt_embeds.repeat_interleave(
|
1282 |
|
1283 |
if isinstance(controlnet_keep[i], list):
|
1284 |
cond_scale = [c * s for c, s in zip(controlnet_conditioning_scale, controlnet_keep[i])]
|
|
|
862 |
return image
|
863 |
|
864 |
@torch.no_grad()
|
|
|
865 |
def __call__(
|
866 |
self,
|
867 |
prompt: Union[str, List[str]] = None,
|
|
|
1277 |
else:
|
1278 |
control_model_input = latent_model_input
|
1279 |
controlnet_prompt_embeds = prompt_embeds
|
1280 |
+
controlnet_prompt_embeds = controlnet_prompt_embeds.repeat_interleave(len(current_context_indexes), dim=0)
|
1281 |
|
1282 |
if isinstance(controlnet_keep[i], list):
|
1283 |
cond_scale = [c * s for c, s in zip(controlnet_conditioning_scale, controlnet_keep[i])]
|