Skip to content

Commit

Permalink
feat(api): add LCM scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 22, 2023
1 parent 54dc970 commit fd97eeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/onnx_web/diffusers/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
KarrasVeScheduler,
KDPM2AncestralDiscreteScheduler,
KDPM2DiscreteScheduler,
LCMScheduler,
LMSDiscreteScheduler,
OnnxRuntimeModel,
OnnxStableDiffusionImg2ImgPipeline,
Expand Down
5 changes: 5 additions & 0 deletions api/onnx_web/diffusers/version_safe_diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
except ImportError:
from ..diffusers.stub_scheduler import StubScheduler as DEISMultistepScheduler

try:
from diffusers import LCMScheduler
except ImportError:
from ..diffusers.stub_scheduler import StubScheduler as LCMScheduler

try:
from diffusers import UniPCMultistepScheduler
except ImportError:
Expand Down

0 comments on commit fd97eeb

Please sign in to comment.