Spaces:
Running
on
Zero
Running
on
Zero
envs
Browse files
pipelines/pipeline_imagecoductor.py
CHANGED
@@ -402,6 +402,7 @@ class ImageConductorPipeline(DiffusionPipeline):
|
|
402 |
obj_latents = copy.deepcopy(latents)
|
403 |
cam_latents = copy.deepcopy(latents)
|
404 |
|
|
|
405 |
# Prepare extra step kwargs.
|
406 |
extra_step_kwargs = self.prepare_extra_step_kwargs(generator, eta)
|
407 |
|
@@ -457,7 +458,13 @@ class ImageConductorPipeline(DiffusionPipeline):
|
|
457 |
controlnet_images_mask = controlnet_images_mask.half()
|
458 |
controlnet_flows = controlnet_flows.half()
|
459 |
text_embeddings = text_embeddings.half()
|
460 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
img_down_block_additional_residuals, img_mid_block_additional_residuals = self.image_controlnet(
|
462 |
controlnet_noisy_latents, t,
|
463 |
encoder_hidden_states=controlnet_prompt_embeds,
|
|
|
402 |
obj_latents = copy.deepcopy(latents)
|
403 |
cam_latents = copy.deepcopy(latents)
|
404 |
|
405 |
+
print("device", device)
|
406 |
# Prepare extra step kwargs.
|
407 |
extra_step_kwargs = self.prepare_extra_step_kwargs(generator, eta)
|
408 |
|
|
|
458 |
controlnet_images_mask = controlnet_images_mask.half()
|
459 |
controlnet_flows = controlnet_flows.half()
|
460 |
text_embeddings = text_embeddings.half()
|
461 |
+
print("controlnet_noisy_latents device", controlnet_noisy_latents.device)
|
462 |
+
print("controlnet_prompt_embeds device", controlnet_prompt_embeds.device)
|
463 |
+
print("controlnet_images device", controlnet_images.device)
|
464 |
+
|
465 |
+
|
466 |
+
|
467 |
+
|
468 |
img_down_block_additional_residuals, img_mid_block_additional_residuals = self.image_controlnet(
|
469 |
controlnet_noisy_latents, t,
|
470 |
encoder_hidden_states=controlnet_prompt_embeds,
|