Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,10 @@ def latents_to_pil(latents):
|
|
147 |
|
148 |
If 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`
|
149 |
"""
|
150 |
-
|
|
|
|
|
|
|
151 |
# ??scheduler.add_noise
|
152 |
|
153 |
"""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').
|
|
|
147 |
|
148 |
If 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`
|
149 |
"""
|
150 |
+
encoded = pil_to_latent(input_image)
|
151 |
+
encoded.shape
|
152 |
+
decoded = latents_to_pil(encoded)[0]
|
153 |
+
decoded
|
154 |
# ??scheduler.add_noise
|
155 |
|
156 |
"""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').
|