Skip to content

Commit

Permalink
fix a bug with ddim and predict x0 objective
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 19, 2022
1 parent 3676a8c commit d88c7ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dalle2_pytorch/dalle2_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def predict_start_from_noise(self, x_t, t, noise):

def predict_noise_from_start(self, x_t, t, x0):
return (
(x0 - extract(self.sqrt_recip_alphas_cumprod, t, x_t.shape) * x_t) / \
(extract(self.sqrt_recip_alphas_cumprod, t, x_t.shape) * x_t - x0) / \
extract(self.sqrt_recipm1_alphas_cumprod, t, x_t.shape)
)

Expand Down
2 changes: 1 addition & 1 deletion dalle2_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.25.1'
__version__ = '0.25.2'

0 comments on commit d88c7ba

Please sign in to comment.