shrikant11 commited on
Commit
bd858f2
1 Parent(s): 6605a87

checkpoint-10

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -25,7 +25,7 @@ class MyPipeline(DiffusionPipeline):
25
  # 2. predict previous mean of image x_t-1 and add variance depending on eta
26
  # eta corresponds to η in paper and should be between [0, 1]
27
  # do x_t -> x_t-1
28
- image = self.scheduler.step(model_output, t, image, torch.tensor(0.5)).prev_sample
29
 
30
  image = (image / 2 + 0.5).clamp(0, 1)
31
  image = image.cpu().permute(0, 2, 3, 1).numpy()
 
25
  # 2. predict previous mean of image x_t-1 and add variance depending on eta
26
  # eta corresponds to η in paper and should be between [0, 1]
27
  # do x_t -> x_t-1
28
+ image = self.scheduler.step(model_output, t, image).prev_sample
29
 
30
  image = (image / 2 + 0.5).clamp(0, 1)
31
  image = image.cpu().permute(0, 2, 3, 1).numpy()