File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
keras_cv/models/stable_diffusion Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ class NoiseScheduler:
31
31
beta_schedule: the beta schedule, a mapping from a beta range to a
32
32
sequence of betas for stepping the model. Choose from `linear` or
33
33
`quadratic`.
34
- betas: a complete set of betas, in lieu of using one of the existing
35
- schedules.
36
34
variance_type: options to clip the variance used when adding noise to
37
35
the de-noised sample. Choose from `fixed_small`, `fixed_small_log`,
38
36
`fixed_large`, `fixed_large_log`, `learned` or `learned_range`.
@@ -65,7 +63,7 @@ def __init__(
65
63
raise ValueError (f"Invalid beta schedule: { beta_schedule } ." )
66
64
67
65
self .alphas = 1.0 - self .betas
68
- self .alphas_cumprod = ops .math . cumprod (self .alphas )
66
+ self .alphas_cumprod = ops .cumprod (self .alphas )
69
67
70
68
self .variance_type = variance_type
71
69
self .clip_sample = clip_sample
You can’t perform that action at this time.
0 commit comments