Spaces:
Build error
Build error
modify
Browse files- stable_diffusion.py +2 -1
stable_diffusion.py
CHANGED
|
@@ -912,7 +912,8 @@ class Generate2img(Module):
|
|
| 912 |
|
| 913 |
with torch.no_grad():
|
| 914 |
# this is diffusion
|
| 915 |
-
|
|
|
|
| 916 |
t.set_description("%3d %3d" % (index, timestep))
|
| 917 |
e_t = self.get_model_latent_output(latent.clone(), timestep, self.model.unet, context.clone(),
|
| 918 |
unconditional_context.clone())
|
|
|
|
| 912 |
|
| 913 |
with torch.no_grad():
|
| 914 |
# this is diffusion
|
| 915 |
+
t = tqdm(list(enumerate(timesteps))[::-1])
|
| 916 |
+
for index, timestep in t:
|
| 917 |
t.set_description("%3d %3d" % (index, timestep))
|
| 918 |
e_t = self.get_model_latent_output(latent.clone(), timestep, self.model.unet, context.clone(),
|
| 919 |
unconditional_context.clone())
|