Spaces:
Running
on
Zero
Running
on
Zero
Update stablenormal/pipeline_yoso_normal.py
Browse files
stablenormal/pipeline_yoso_normal.py
CHANGED
@@ -588,7 +588,7 @@ class YOSONormalsPipeline(StableDiffusionControlNetPipeline):
|
|
588 |
image_latent = image_latent * self.vae.config.scaling_factor
|
589 |
image_latent = image_latent.repeat_interleave(ensemble_size, dim=0) # [N*E,4,h,w]
|
590 |
|
591 |
-
pred_latent =
|
592 |
if pred_latent is None:
|
593 |
pred_latent = randn_tensor(
|
594 |
image_latent.shape,
|
|
|
588 |
image_latent = image_latent * self.vae.config.scaling_factor
|
589 |
image_latent = image_latent.repeat_interleave(ensemble_size, dim=0) # [N*E,4,h,w]
|
590 |
|
591 |
+
pred_latent = torch.zeros_like(image_latent)
|
592 |
if pred_latent is None:
|
593 |
pred_latent = randn_tensor(
|
594 |
image_latent.shape,
|