Update pipeline.py
Browse files- pipeline.py +3 -4
pipeline.py
CHANGED
@@ -1303,11 +1303,10 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1303 |
cond_scale = controlnet_cond_scale * controlnet_keep[i]
|
1304 |
|
1305 |
control_model_input = torch.transpose(control_model_input, 1, 2)
|
1306 |
-
control_model_input = control_model_input.reshape(
|
1307 |
-
(-1, control_model_input.shape[2], control_model_input.shape[3], control_model_input.shape[4])
|
1308 |
-
)
|
1309 |
# print device for all inputs
|
1310 |
try:
|
|
|
1311 |
print("device of control_model_input", control_model_input.device)
|
1312 |
print("device of controlnet_prompt_embeds", controlnet_prompt_embeds.device)
|
1313 |
print("device of current_context_conditioning_frames", current_context_conditioning_frames.device)
|
@@ -1316,7 +1315,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1316 |
pass
|
1317 |
|
1318 |
down_block_res_samples, mid_block_res_sample = self.controlnet(
|
1319 |
-
|
1320 |
t,
|
1321 |
encoder_hidden_states=prompt_embeds,
|
1322 |
controlnet_cond=current_context_conditioning_frames,
|
|
|
1303 |
cond_scale = controlnet_cond_scale * controlnet_keep[i]
|
1304 |
|
1305 |
control_model_input = torch.transpose(control_model_input, 1, 2)
|
1306 |
+
control_model_input = control_model_input.reshape((-1, control_model_input.shape[2], control_model_input.shape[3], control_model_input.shape[4]))
|
|
|
|
|
1307 |
# print device for all inputs
|
1308 |
try:
|
1309 |
+
print("cond_scale", cond_scale)
|
1310 |
print("device of control_model_input", control_model_input.device)
|
1311 |
print("device of controlnet_prompt_embeds", controlnet_prompt_embeds.device)
|
1312 |
print("device of current_context_conditioning_frames", current_context_conditioning_frames.device)
|
|
|
1315 |
pass
|
1316 |
|
1317 |
down_block_res_samples, mid_block_res_sample = self.controlnet(
|
1318 |
+
latent_model_input,
|
1319 |
t,
|
1320 |
encoder_hidden_states=prompt_embeds,
|
1321 |
controlnet_cond=current_context_conditioning_frames,
|