Skip to content

Commit 36ea832

Browse files
vdebortoHackable Diffusion Authors
authored andcommitted
Fix logSNR docstring errors in gaussian.py
PiperOrigin-RevId: 911364961
1 parent 7d200e8 commit 36ea832

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hackable_diffusion/lib/corruption/gaussian.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
3131
logSNR(t) = 2 log(α(t) / σ(t)).
3232
33-
Importantly, the logSNR is a non-decreasing quantity in all considered
34-
schedules.
33+
Importantly, the logSNR is a non-increasing quantity in all considered
34+
schedules (it goes from +∞ at t=0 to -∞ at t=1).
3535
3636
The associated forward process is given by
3737
@@ -42,7 +42,7 @@
4242
4343
f(t) = log(α(t))',
4444
g(t)**2 = 2 α(t) σ(t) (σ(t)/α(t))',
45-
g(t) = σ(t)sqrt(logSNR_der(t)).
45+
g(t) = σ(t)sqrt(-logSNR_der(t)).
4646
4747
Note that in that case, we not only have (1) but also the more general formula
4848

0 commit comments

Comments
 (0)