Add DEIS Scheduler

This commit is contained in:
blessedcoolant 2023-05-12 03:10:30 +12:00
parent b928d7a6e6
commit 46ca7718d9
5 changed files with 6 additions and 1 deletions

View File

@ -108,6 +108,7 @@ APP_VERSION = invokeai.version.__version__
SAMPLER_CHOICES = [
"ddim",
"deis",
"lms",
"pndm",
"heun",

View File

@ -1,10 +1,11 @@
from diffusers import DDIMScheduler, DPMSolverMultistepScheduler, KDPM2DiscreteScheduler, \
KDPM2AncestralDiscreteScheduler, EulerDiscreteScheduler, EulerAncestralDiscreteScheduler, \
HeunDiscreteScheduler, LMSDiscreteScheduler, PNDMScheduler, UniPCMultistepScheduler, \
DPMSolverSinglestepScheduler
DPMSolverSinglestepScheduler, DEISMultistepScheduler
SCHEDULER_MAP = dict(
ddim=(DDIMScheduler, dict()),
deis=(DEISMultistepScheduler, dict()),
lms=(LMSDiscreteScheduler, dict()),
pndm=(PNDMScheduler, dict()),
heun=(HeunDiscreteScheduler, dict()),

View File

@ -4,6 +4,7 @@ from .parse_seed_weights import parse_seed_weights
SAMPLER_CHOICES = [
"ddim",
"deis",
"lms",
"pndm",
"heun",

View File

@ -2,6 +2,7 @@
export const DIFFUSERS_SCHEDULERS: Array<string> = [
'ddim',
'deis',
'lms',
'pndm',
'heun',

View File

@ -47,6 +47,7 @@ export type CommonGeneratedImageMetadata = {
postprocessing: null | Array<ESRGANMetadata | FacetoolMetadata>;
sampler:
| 'ddim'
| 'deis'
| 'lms'
| 'pndm'
| 'heun'