Skip to content

Commit 1d9d8df

Browse files
committed
address #346
1 parent 403f9e6 commit 1d9d8df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

denoising_diffusion_pytorch/classifier_free_guidance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def model_predictions(self, x, t, classes, cond_scale = 6., rescaled_phi = 0.7,
646646
if self.objective == 'pred_noise':
647647
pred_noise = model_output if not self.use_cfg_plus_plus else model_output_null
648648

649-
x_start = self.predict_start_from_noise(x, t, pred_noise)
649+
x_start = self.predict_start_from_noise(x, t, model_output)
650650
x_start = maybe_clip(x_start)
651651

652652
elif self.objective == 'pred_x0':
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.0'
1+
__version__ = '2.1.1'

0 commit comments

Comments
 (0)