Skip to content

Commit 832e2d9

Browse files
authored
Fix the issue + Remove unused arg (#2113)
1 parent 11d30cc commit 832e2d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

keras_cv/models/stable_diffusion/noise_scheduler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ class NoiseScheduler:
3131
beta_schedule: the beta schedule, a mapping from a beta range to a
3232
sequence of betas for stepping the model. Choose from `linear` or
3333
`quadratic`.
34-
betas: a complete set of betas, in lieu of using one of the existing
35-
schedules.
3634
variance_type: options to clip the variance used when adding noise to
3735
the de-noised sample. Choose from `fixed_small`, `fixed_small_log`,
3836
`fixed_large`, `fixed_large_log`, `learned` or `learned_range`.
@@ -65,7 +63,7 @@ def __init__(
6563
raise ValueError(f"Invalid beta schedule: {beta_schedule}.")
6664

6765
self.alphas = 1.0 - self.betas
68-
self.alphas_cumprod = ops.math.cumprod(self.alphas)
66+
self.alphas_cumprod = ops.cumprod(self.alphas)
6967

7068
self.variance_type = variance_type
7169
self.clip_sample = clip_sample

0 commit comments

Comments
 (0)