Spaces:
Runtime error
Runtime error
Update app.py
Browse files146 unmodified lines147148149150151152153146 unmodified linesIf you uncomment the cell below you'll see that in this case the `scheduler.add_noise` function literally just adds noise scaled by sigma: `noisy_samples = original_samples + noise * sigmas`"""# ??scheduler.add_noise"""Other diffusion models may be trained with different noising and scheduling approaches, some of which keep the variance fairly constant across noise levels ('variance preserving') with different scaling and mixing tricks instead of having noisy latents with higher and higher variance as more noise is added ('variance exploding').146 unmodified lines147148149150151152153154155156146 unmodified linesIf you uncomment the cell below you'll see that in this case the `scheduler.add_noise` function literally just adds noise scaled by sigma: `noisy_samples = original_samples + noise * sigmas`"""encoded = pil_to_latent(input_image)encoded.shapedecoded = latents_to_pil(encoded)[0]decoded# ??scheduler.add_noise"""Other diffusion models may be trained with different noising and scheduling approaches, some of which keep the variance fairly constant across noise levels ('variance preserving') with different scaling and mixing tricks instead of having noisy latents with higher and higher variance as more noise is added ('variance exploding').
app.py+4-1