Skip to content

Commit

Permalink
make style
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky committed Sep 23, 2024
1 parent e04194c commit db54cc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/diffusers/schedulers/scheduling_euler_discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ def set_timesteps(
if timesteps is not None and self.config.use_exponential_sigmas:
raise ValueError("Cannot set `timesteps` with `config.use_exponential_sigmas = True`.")
if self.config.use_exponential_sigmas and self.config.use_karras_sigmas:
raise ValueErrror("Cannot set both `config.use_exponential_sigmas = True` and config.use_karras_sigmas = True`")
raise ValueError(
"Cannot set both `config.use_exponential_sigmas = True` and config.use_karras_sigmas = True`"
)
if (
timesteps is not None
and self.config.timestep_type == "continuous"
Expand Down

0 comments on commit db54cc0

Please sign in to comment.