fix a bug with ddim and predict x0 objective

This commit is contained in:
Phil Wang
2022-07-18 19:04:57 -07:00
parent 6eba6cdd50
commit 37334ae824
2 changed files with 2 additions and 2 deletions
@@ -479,7 +479,7 @@ class GaussianDiffusion(nn.Module):
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)
)
+1 -1
View File
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = 'denoising-diffusion-pytorch',
packages = find_packages(),
version = '0.26.0',
version = '0.26.1',
license='MIT',
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
author = 'Phil Wang',