Skip to content

Commit 3618d33

Browse files
authored
Merge pull request open-mmlab#34 from kashif/patch-1
fixed typo in comment
2 parents bd9c9fb + c3c1bdf commit 3618d33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffusers/schedulers/scheduling_ddpm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ def get_variance(self, t, variance_type=None):
9292
alpha_prod_t = self.alphas_cumprod[t]
9393
alpha_prod_t_prev = self.alphas_cumprod[t - 1] if t > 0 else self.one
9494

95-
# For t > 0, compute predicted variance βt (see formala (6) and (7) from https://arxiv.org/pdf/2006.11239.pdf)
95+
# For t > 0, compute predicted variance βt (see formula (6) and (7) from https://arxiv.org/pdf/2006.11239.pdf)
9696
# and sample from it to get previous sample
97-
# x_{t-1} ~ N(pred_prev_sample, variance) == add variane to pred_sample
97+
# x_{t-1} ~ N(pred_prev_sample, variance) == add variance to pred_sample
9898
variance = (1 - alpha_prod_t_prev) / (1 - alpha_prod_t) * self.betas[t]
9999

100100
if variance_type is None:

0 commit comments

Comments
 (0)