Update pipeline.py
Browse files- pipeline.py +1 -0
pipeline.py
CHANGED
@@ -1259,6 +1259,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1259 |
if self.controlnet != None:
|
1260 |
# if we are using multiple controlnets, select the context window for each controlnet
|
1261 |
if isinstance(controlnet, MultiControlNetModel):
|
|
|
1262 |
for c in range(len(controlnet.nets)):
|
1263 |
current_context_conditioning_frames[c] = conditioning_frames[c][current_context_indexes, :, :, :]
|
1264 |
else:
|
|
|
1259 |
if self.controlnet != None:
|
1260 |
# if we are using multiple controlnets, select the context window for each controlnet
|
1261 |
if isinstance(controlnet, MultiControlNetModel):
|
1262 |
+
current_context_conditioning_frames = []
|
1263 |
for c in range(len(controlnet.nets)):
|
1264 |
current_context_conditioning_frames[c] = conditioning_frames[c][current_context_indexes, :, :, :]
|
1265 |
else:
|