Skip to content

Commit a4c68d3

Browse files
committed
fix bug
1 parent b33a48e commit a4c68d3

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
@@ -357,7 +357,7 @@ def p_sample_loop(self, shape):
357357

358358
@torch.no_grad()
359359
def sample(self, image_size, batch_size = 16):
360-
return self.p_sample_loop((16, 3, image_size, image_size))
360+
return self.p_sample_loop((batch_size, 3, image_size, image_size))
361361

362362
@torch.no_grad()
363363
def interpolate(self, x1, x2, t = None, lam = 0.5):

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.3.0',
6+
version = '0.3.1',
77
license='MIT',
88
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)