Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,15 +158,6 @@ print(scheduler.timesteps)
|
|
| 158 |
# Look at the equivalent noise levels:
|
| 159 |
print(scheduler.sigmas)
|
| 160 |
|
| 161 |
-
"""During sampling, we'll start at a high noise level (in fact, our input will be pure noise) and gradually 'denoise' down to an image, according to this schedule."""
|
| 162 |
-
|
| 163 |
-
# Plotting this noise schedule:
|
| 164 |
-
plt.plot(scheduler.sigmas)
|
| 165 |
-
plt.title('Noise Schedule')
|
| 166 |
-
plt.xlabel('Sampling step')
|
| 167 |
-
plt.ylabel('sigma')
|
| 168 |
-
plt.show()
|
| 169 |
-
|
| 170 |
# TODO maybe show timestep as well
|
| 171 |
|
| 172 |
"""This 'sigma' is the amount of noise added to the latent representation. Let's visualize what this looks like by adding a bit of noise to our encoded image and then decoding this noised version:"""
|
|
|
|
| 158 |
# Look at the equivalent noise levels:
|
| 159 |
print(scheduler.sigmas)
|
| 160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
# TODO maybe show timestep as well
|
| 162 |
|
| 163 |
"""This 'sigma' is the amount of noise added to the latent representation. Let's visualize what this looks like by adding a bit of noise to our encoded image and then decoding this noised version:"""
|