Skip to content

Commit 8af80c8

Browse files
committed
self conditioning step needs to also receive variance normalized noised image
1 parent ccb4703 commit 8af80c8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rin_pytorch/rin_pytorch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,8 @@ def forward(self, img, *args, **kwargs):
732732

733733
noised_img = alpha * img + sigma * noise
734734

735+
noised_img = self.normalize_img_variance(noised_img)
736+
735737
# in the paper, they had to use a really high probability of latent self conditioning, up to 90% of the time
736738
# slight drawback
737739

@@ -745,7 +747,6 @@ def forward(self, img, *args, **kwargs):
745747

746748
# predict and take gradient step
747749

748-
noised_img = self.normalize_img_variance(noised_img)
749750
pred = self.model(noised_img, times, self_cond, self_latents)
750751

751752
if self.objective == 'x0':

setup.py

Lines changed: 1 addition & 1 deletion
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.4.0',
6+
version = '0.4.1',
77
license='MIT',
88
description = 'RIN - Recurrent Interface Network - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)