Skip to content

Commit 775f2ff

Browse files
committed
address #19
1 parent 34caeca commit 775f2ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rin_pytorch/rin_pytorch.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,8 @@ def ddpm_sample(self, shape, time_difference = None):
700700

701701
# get alpha sigma of time and next time
702702

703-
alpha, sigma = gamma_to_alpha_sigma(gamma, self.scale)
704-
alpha_next, sigma_next = gamma_to_alpha_sigma(gamma_next, self.scale)
703+
alpha, sigma = gamma_to_alpha_sigma(gamma)
704+
alpha_next, sigma_next = gamma_to_alpha_sigma(gamma_next)
705705

706706
# calculate x0 and noise
707707

@@ -762,8 +762,8 @@ def ddim_sample(self, shape, time_difference = None):
762762

763763
padded_gamma, padded_gamma_next = map(partial(right_pad_dims_to, img), (gamma, gamma_next))
764764

765-
alpha, sigma = gamma_to_alpha_sigma(padded_gamma, self.scale)
766-
alpha_next, sigma_next = gamma_to_alpha_sigma(padded_gamma_next, self.scale)
765+
alpha, sigma = gamma_to_alpha_sigma(padded_gamma)
766+
alpha_next, sigma_next = gamma_to_alpha_sigma(padded_gamma_next)
767767

768768
# add the time delay
769769

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'RIN-pytorch',
55
packages = find_packages(exclude=[]),
6-
version = '0.7.9',
6+
version = '0.7.10',
77
license='MIT',
88
description = 'RIN - Recurrent Interface Network - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)