Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -1426,7 +1426,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1426 |
latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
|
1427 |
|
1428 |
|
1429 |
-
if self.controlnet != None and i <
|
1430 |
contorl_start = time.time()
|
1431 |
|
1432 |
current_context_conditioning_frames = conditioning_frames[current_context_indexes, :, :, :]
|
|
|
1426 |
latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
|
1427 |
|
1428 |
|
1429 |
+
if self.controlnet != None and i < int(control_guidance_end*len(timesteps)):
|
1430 |
contorl_start = time.time()
|
1431 |
|
1432 |
current_context_conditioning_frames = conditioning_frames[current_context_indexes, :, :, :]
|