xfh commited on
Commit
7f92e5c
·
1 Parent(s): 13227f0
Files changed (1) hide show
  1. 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
- for index, timestep in (t := tqdm(list(enumerate(timesteps))[::-1])):
 
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())