Unverified Commit 9070c394 authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

[Naming] correct config naming of DDIM pipeline (#187)

parent 194ed794
......@@ -59,7 +59,7 @@ class DDIMScheduler(SchedulerMixin, ConfigMixin):
trained_betas=None,
timestep_values=None,
clip_sample=True,
clip_alpha_at_one=True,
set_alpha_to_one=True,
tensor_format="pt",
):
......@@ -79,9 +79,9 @@ class DDIMScheduler(SchedulerMixin, ConfigMixin):
# At every step in ddim, we are looking into the previous alphas_cumprod
# For the final step, there is no previous alphas_cumprod because we are already at 0
# `clip_alpha_at_one` decides whether we set this paratemer simply to one or
# `set_alpha_to_one` decides whether we set this paratemer simply to one or
# whether we use the final alpha of the "non-previous" one.
self.final_alpha_cumprod = np.array(1.0) if clip_alpha_at_one else self.alphas_cumprod[0]
self.final_alpha_cumprod = np.array(1.0) if set_alpha_to_one else self.alphas_cumprod[0]
# setable values
self.num_inference_steps = None
......
......@@ -871,7 +871,7 @@ class PipelineTesterMixin(unittest.TestCase):
beta_end=0.012,
beta_schedule="scaled_linear",
clip_sample=False,
clip_alpha_at_one=False,
set_alpha_to_one=False,
)
sd_pipe.scheduler = scheduler
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment