Skip to content

Commit 9bd5b09

Browse files
committed
Merge branch 'laplace-scheduler' of https://github.com/gapatron/diffusers into laplace-scheduler
2 parents bd58001 + 32090ce commit 9bd5b09

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/source/en/community_projects.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,8 @@ Happy exploring, and thank you for being part of the Diffusers community!
8383
<td><a href="https://github.com/suzukimain/auto_diffusers"> Model Search </a></td>
8484
<td>Search models on Civitai and Hugging Face</td>
8585
</tr>
86+
<tr style="border-top: 2px solid black">
87+
<td><a href="https://github.com/beinsezii/skrample"> Skrample </a></td>
88+
<td>Fully modular scheduler functions with 1st class diffusers integration.</td>
89+
</tr>
8690
</table>

src/diffusers/schedulers/scheduling_ddpm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ def betas_for_alpha_bar(
7272

7373
def alpha_bar_fn(t):
7474
return math.cos((t + 0.008) / 1.008 * math.pi / 2) ** 2
75-
75+
7676
elif alpha_transform_type == "laplace":
7777

7878
def alpha_bar_fn(t):
79-
lmb = - 0.5 * math.copysign(1, 0.5 - t) * math.log(1 - 2 * math.fabs(0.5 - t) + 1e-6)
79+
lmb = -0.5 * math.copysign(1, 0.5 - t) * math.log(1 - 2 * math.fabs(0.5 - t) + 1e-6)
8080
snr = math.exp(lmb)
8181
return math.sqrt(snr / (1 + snr))
8282

0 commit comments

Comments
 (0)