Anton Forsman commited on
Commit
604cd2a
1 Parent(s): 0a24028

off by one

Browse files
Files changed (1) hide show
  1. diffusion.py +1 -1
diffusion.py CHANGED
@@ -195,7 +195,7 @@ class GaussianDiffusion:
195
  for t in it:
196
  temp_image = self.denormalize_image(torch.clip(x, -1, 1)).clone().squeeze(0)
197
  if cb is not None:
198
- cb(temp_image, 1-t/(self.noise_steps-1))
199
  image_versions.append(self.denormalize_image(torch.clip(x, -1, 1)).clone().squeeze(0))
200
 
201
  if x0 is not None and t > 80:
 
195
  for t in it:
196
  temp_image = self.denormalize_image(torch.clip(x, -1, 1)).clone().squeeze(0)
197
  if cb is not None:
198
+ cb(temp_image, 1-t/(self.noise_steps+1))
199
  image_versions.append(self.denormalize_image(torch.clip(x, -1, 1)).clone().squeeze(0))
200
 
201
  if x0 is not None and t > 80: