InvokeAI/invokeai/backend/stable_diffusion/schedulers/schedulers.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
1.2 KiB
Python
Raw Normal View History

2023-05-11 12:40:03 +00:00
from diffusers import DDIMScheduler, DPMSolverMultistepScheduler, KDPM2DiscreteScheduler, \
KDPM2AncestralDiscreteScheduler, EulerDiscreteScheduler, EulerAncestralDiscreteScheduler, \
HeunDiscreteScheduler, LMSDiscreteScheduler, PNDMScheduler, UniPCMultistepScheduler, \
2023-05-11 15:18:34 +00:00
DPMSolverSinglestepScheduler, DEISMultistepScheduler, DDPMScheduler
2023-05-11 12:40:03 +00:00
SCHEDULER_MAP = dict(
ddim=(DDIMScheduler, dict()),
2023-05-11 15:18:34 +00:00
ddpm=(DDPMScheduler, dict()),
2023-05-11 15:10:30 +00:00
deis=(DEISMultistepScheduler, dict()),
lms=(LMSDiscreteScheduler, dict()),
pndm=(PNDMScheduler, dict()),
2023-05-12 14:43:32 +00:00
heun=(HeunDiscreteScheduler, dict(use_karras_sigmas=False)),
heun_k=(HeunDiscreteScheduler, dict(use_karras_sigmas=True)),
euler=(EulerDiscreteScheduler, dict(use_karras_sigmas=False)),
euler_k=(EulerDiscreteScheduler, dict(use_karras_sigmas=True)),
euler_a=(EulerAncestralDiscreteScheduler, dict()),
kdpm_2=(KDPM2DiscreteScheduler, dict()),
kdpm_2_a=(KDPM2AncestralDiscreteScheduler, dict()),
dpmpp_2s=(DPMSolverSinglestepScheduler, dict()),
dpmpp_2m=(DPMSolverMultistepScheduler, dict(use_karras_sigmas=False)),
dpmpp_2m_k=(DPMSolverMultistepScheduler, dict(use_karras_sigmas=True)),
2023-05-11 12:40:03 +00:00
unipc=(UniPCMultistepScheduler, dict(cpu_only=True))
)