Skip to content

Commit 71953eb

Browse files
committed
fix bug, thanks to @jihoonerd
1 parent 0b8cdb4 commit 71953eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

denoising_diffusion_pytorch/denoising_diffusion_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def __init__(
318318

319319
alphas = 1. - betas
320320
alphas_cumprod = torch.cumprod(alphas, axis=0)
321-
alphas_cumprod_prev = F.pad(alphas_cumprod[:-1], (0, 1), value = 1.)
321+
alphas_cumprod_prev = F.pad(alphas_cumprod[:-1], (1, 0), value = 1.)
322322

323323
timesteps, = betas.shape
324324
self.num_timesteps = int(timesteps)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'denoising-diffusion-pytorch',
55
packages = find_packages(),
6-
version = '0.9.0',
6+
version = '0.9.1',
77
license='MIT',
88
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)