Skip to content

Commit 87faae9

Browse files
committed
make a guess
1 parent 1a4ef34 commit 87faae9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ sampled_images.shape # (4, 3, 128, 128)
100100

101101
- [ ] experiment with <a href="https://github.com/lucidrains/bidirectional-cross-attention/issues">bidirectional cross attention</a>
102102
- [ ] add ability to use 2d sinusoidal pos emb, from simple vit paper
103-
- [ ] `gamma_to_log_snr` should account for scale < 1
104103

105104
## Citations
106105

rin_pytorch/rin_pytorch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ def sigmoid_schedule(t, start = -3, end = 3, tau = 1, clamp_min = 1e-9):
501501
def gamma_to_alpha_sigma(gamma, scale = 1):
502502
return torch.sqrt(gamma) * scale, torch.sqrt(1 - gamma)
503503

504-
def gamma_to_log_snr(gamma, eps = 1e-5):
505-
return -log(gamma ** -1. - 1, eps = eps)
504+
def gamma_to_log_snr(gamma, scale = 1, eps = 1e-5):
505+
return log(gamma * (scale ** 2) / (1 - gamma), eps = eps)
506506

507507
# gaussian diffusion
508508

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.3',
6+
version = '0.4.4',
77
license='MIT',
88
description = 'RIN - Recurrent Interface Network - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)