Disty0
commited on
Commit
·
d639c9b
1
Parent(s):
1ad6f7a
device fix
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -374,7 +374,7 @@ class Zero123PlusPipeline(diffusers.StableDiffusionPipeline):
|
|
374 |
False,
|
375 |
)
|
376 |
ramp = global_embeds.new_tensor(self.config.ramping_coefficients).unsqueeze(-1)
|
377 |
-
encoder_hidden_states = torch.cat([prompt_embeds, torch.zeros(prompt_embeds.shape)]) + global_embeds * ramp
|
378 |
cak = dict(cond_lat=cond_lat)
|
379 |
if hasattr(self.unet, "controlnet"):
|
380 |
cak['control_depth'] = depth_image
|
|
|
374 |
False,
|
375 |
)
|
376 |
ramp = global_embeds.new_tensor(self.config.ramping_coefficients).unsqueeze(-1)
|
377 |
+
encoder_hidden_states = torch.cat([prompt_embeds, torch.zeros(prompt_embeds.shape, device=prompt_embeds.device)]) + global_embeds * ramp
|
378 |
cak = dict(cond_lat=cond_lat)
|
379 |
if hasattr(self.unet, "controlnet"):
|
380 |
cak['control_depth'] = depth_image
|