Diffusion Models, Research, Data Science, Artificial Intelligence, Stable Diffusion.
torch.randn_like(latents) we add a random normal distribution number to the latent width times the latent height number of pixels to have a different mean than 0! So essentially across all channels and batches, the normal distribution will have a different mean than 0 for all of them. Now why will