skytnt commited on
Commit
88ad981
1 Parent(s): 8896f9f
Files changed (1) hide show
  1. 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