fix bug
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -646,7 +646,7 @@ class StableDiffusionLongPromptWeightingPipeline(DiffusionPipeline):
|
|
646 |
init_latent_dist = self.vae.encode(init_image).latent_dist
|
647 |
init_latents = init_latent_dist.sample(generator=generator)
|
648 |
init_latents = 0.18215 * init_latents
|
649 |
-
init_latents = torch.cat([init_latents] * num_images_per_prompt, dim=0)
|
650 |
init_latents_orig = init_latents
|
651 |
|
652 |
# preprocess mask
|
|
|
646 |
init_latent_dist = self.vae.encode(init_image).latent_dist
|
647 |
init_latents = init_latent_dist.sample(generator=generator)
|
648 |
init_latents = 0.18215 * init_latents
|
649 |
+
init_latents = torch.cat([init_latents] * batch_size * num_images_per_prompt, dim=0)
|
650 |
init_latents_orig = init_latents
|
651 |
|
652 |
# preprocess mask
|