From cf996472b92cd519aab499da6e60872c58f33403 Mon Sep 17 00:00:00 2001 From: Sergey Borisov Date: Tue, 30 Jul 2024 04:50:56 +0300 Subject: [PATCH] Suggested changes Co-Authored-By: psychedelicious <4822129+psychedelicious@users.noreply.github.com> --- .../web/src/features/nodes/types/v2/common.ts | 6 --- .../features/parameters/types/constants.ts | 42 +++++++++---------- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/types/v2/common.ts b/invokeai/frontend/web/src/features/nodes/types/v2/common.ts index 490eaf1f19..8613076132 100644 --- a/invokeai/frontend/web/src/features/nodes/types/v2/common.ts +++ b/invokeai/frontend/web/src/features/nodes/types/v2/common.ts @@ -23,7 +23,6 @@ export const zSchedulerField = z.enum([ 'ddpm', 'dpmpp_2s', 'dpmpp_2m', - 'dpmpp_3m', 'dpmpp_2m_sde', 'dpmpp_sde', 'heun', @@ -32,17 +31,12 @@ export const zSchedulerField = z.enum([ 'pndm', 'unipc', 'euler_k', - 'deis_k', 'dpmpp_2s_k', 'dpmpp_2m_k', - 'dpmpp_3m_k', 'dpmpp_2m_sde_k', 'dpmpp_sde_k', 'heun_k', - 'kdpm_2_k', - 'kdpm_2_a_k', 'lms_k', - 'unipc_k', 'euler_a', 'kdpm_2_a', 'lcm', diff --git a/invokeai/frontend/web/src/features/parameters/types/constants.ts b/invokeai/frontend/web/src/features/parameters/types/constants.ts index ee7d4bf781..678b2b37f3 100644 --- a/invokeai/frontend/web/src/features/parameters/types/constants.ts +++ b/invokeai/frontend/web/src/features/parameters/types/constants.ts @@ -52,34 +52,34 @@ export const CLIP_SKIP_MAP = { * Mapping of schedulers to human readable name */ export const SCHEDULER_OPTIONS: ComboboxOption[] = [ - { value: 'euler', label: 'Euler' }, - { value: 'deis', label: 'DEIS' }, { value: 'ddim', label: 'DDIM' }, { value: 'ddpm', label: 'DDPM' }, - { value: 'dpmpp_sde', label: 'DPM++ SDE' }, - { value: 'dpmpp_2s', label: 'DPM++ 2S' }, - { value: 'dpmpp_2m', label: 'DPM++ 2M' }, - { value: 'dpmpp_3m', label: 'DPM++ 3M' }, - { value: 'dpmpp_2m_sde', label: 'DPM++ 2M SDE' }, - { value: 'heun', label: 'Heun' }, - { value: 'kdpm_2', label: 'KDPM 2' }, - { value: 'lms', label: 'LMS' }, - { value: 'pndm', label: 'PNDM' }, - { value: 'unipc', label: 'UniPC' }, - { value: 'euler_k', label: 'Euler Karras' }, + { value: 'deis', label: 'DEIS' }, { value: 'deis_k', label: 'DEIS Karras' }, - { value: 'dpmpp_sde_k', label: 'DPM++ SDE Karras' }, + { value: 'dpmpp_2s', label: 'DPM++ 2S' }, { value: 'dpmpp_2s_k', label: 'DPM++ 2S Karras' }, + { value: 'dpmpp_2m', label: 'DPM++ 2M' }, { value: 'dpmpp_2m_k', label: 'DPM++ 2M Karras' }, - { value: 'dpmpp_3m_k', label: 'DPM++ 3M Karras' }, + { value: 'dpmpp_2m_sde', label: 'DPM++ 2M SDE' }, { value: 'dpmpp_2m_sde_k', label: 'DPM++ 2M SDE Karras' }, - { value: 'heun_k', label: 'Heun Karras' }, - { value: 'kdpm_2_k', label: 'KDPM 2 Karras' }, - { value: 'kdpm_2_a_k', label: 'KDPM 2 Ancestral Karras' }, - { value: 'lms_k', label: 'LMS Karras' }, - { value: 'unipc_k', label: 'UniPC Karras' }, + { value: 'dpmpp_3m', label: 'DPM++ 3M' }, + { value: 'dpmpp_3m_k', label: 'DPM++ 3M Karras' }, + { value: 'dpmpp_sde', label: 'DPM++ SDE' }, + { value: 'dpmpp_sde_k', label: 'DPM++ SDE Karras' }, + { value: 'euler', label: 'Euler' }, + { value: 'euler_k', label: 'Euler Karras' }, { value: 'euler_a', label: 'Euler Ancestral' }, + { value: 'heun', label: 'Heun' }, + { value: 'heun_k', label: 'Heun Karras' }, + { value: 'kdpm_2', label: 'KDPM 2' }, + { value: 'kdpm_2_k', label: 'KDPM 2 Karras' }, { value: 'kdpm_2_a', label: 'KDPM 2 Ancestral' }, + { value: 'kdpm_2_a_k', label: 'KDPM 2 Ancestral Karras' }, { value: 'lcm', label: 'LCM' }, + { value: 'lms', label: 'LMS' }, + { value: 'lms_k', label: 'LMS Karras' }, + { value: 'pndm', label: 'PNDM' }, { value: 'tcd', label: 'TCD' }, -].sort((a, b) => a.label.localeCompare(b.label)); + { value: 'unipc', label: 'UniPC' }, + { value: 'unipc_k', label: 'UniPC Karras' }, +];