2023-06-18 07:31:53 +00:00
|
|
|
import { SelectItem } from '@mantine/core';
|
|
|
|
|
2022-09-16 17:18:15 +00:00
|
|
|
// TODO: use Enums?
|
2023-06-18 07:31:53 +00:00
|
|
|
export const SCHEDULERS: SelectItem[] = [
|
|
|
|
{ label: 'euler', value: 'euler', group: 'Standard' },
|
|
|
|
{ label: 'deis', value: 'deis', group: 'Standard' },
|
|
|
|
{ label: 'ddim', value: 'ddim', group: 'Standard' },
|
|
|
|
{ label: 'ddpm', value: 'ddpm', group: 'Standard' },
|
|
|
|
{ label: 'dpmpp_2s', value: 'dpmpp_2s', group: 'Standard' },
|
|
|
|
{ label: 'dpmpp_2m', value: 'dpmpp_2m', group: 'Standard' },
|
|
|
|
{ label: 'heun', value: 'heun', group: 'Standard' },
|
|
|
|
{ label: 'kdpm_2', value: 'kdpm_2', group: 'Standard' },
|
|
|
|
{ label: 'lms', value: 'lms', group: 'Standard' },
|
|
|
|
{ label: 'pndm', value: 'pndm', group: 'Standard' },
|
|
|
|
{ label: 'unipc', value: 'unipc', group: 'Standard' },
|
|
|
|
{ label: 'euler_k', value: 'euler_k', group: 'Karras' },
|
|
|
|
{ label: 'dpmpp_2s_k', value: 'dpmpp_2s_k', group: 'Karras' },
|
|
|
|
{ label: 'dpmpp_2m_k', value: 'dpmpp_2m_k', group: 'Karras' },
|
|
|
|
{ label: 'heun_k', value: 'heun_k', group: 'Karras' },
|
|
|
|
{ label: 'lms_k', value: 'lms_k', group: 'Karras' },
|
|
|
|
{ label: 'euler_a', value: 'euler_a', group: 'Ancestral' },
|
|
|
|
{ label: 'kdpm_2_a', value: 'kdpm_2_a', group: 'Ancestral' },
|
|
|
|
];
|
2022-09-16 17:18:15 +00:00
|
|
|
|
2023-06-18 07:31:53 +00:00
|
|
|
export const SCHEDULER_ITEMS = [
|
2023-02-07 05:26:06 +00:00
|
|
|
'ddim',
|
2023-05-11 14:59:43 +00:00
|
|
|
'lms',
|
2023-06-17 18:00:16 +00:00
|
|
|
'lms_k',
|
2023-05-11 14:59:43 +00:00
|
|
|
'euler',
|
|
|
|
'euler_k',
|
|
|
|
'euler_a',
|
2023-05-11 14:23:33 +00:00
|
|
|
'dpmpp_2s',
|
2023-06-17 18:00:16 +00:00
|
|
|
'dpmpp_2s_k',
|
2023-05-11 14:59:43 +00:00
|
|
|
'dpmpp_2m',
|
|
|
|
'dpmpp_2m_k',
|
2023-05-12 20:17:45 +00:00
|
|
|
'kdpm_2',
|
|
|
|
'kdpm_2_a',
|
|
|
|
'deis',
|
|
|
|
'ddpm',
|
|
|
|
'pndm',
|
|
|
|
'heun',
|
|
|
|
'heun_k',
|
2023-05-11 08:52:37 +00:00
|
|
|
'unipc',
|
2023-06-18 08:02:36 +00:00
|
|
|
] as const;
|
2023-05-16 00:40:26 +00:00
|
|
|
|
2023-06-18 08:02:36 +00:00
|
|
|
export type Scheduler = (typeof SCHEDULER_ITEMS)[number];
|
2023-05-16 00:40:26 +00:00
|
|
|
|
2022-09-16 17:18:15 +00:00
|
|
|
// Valid upscaling levels
|
2023-06-12 12:11:30 +00:00
|
|
|
export const UPSCALING_LEVELS: Array<{ label: string; value: string }> = [
|
|
|
|
{ label: '2x', value: '2' },
|
|
|
|
{ label: '4x', value: '4' },
|
2022-09-16 17:18:15 +00:00
|
|
|
];
|
|
|
|
export const NUMPY_RAND_MIN = 0;
|
|
|
|
|
2023-04-29 14:57:00 +00:00
|
|
|
export const NUMPY_RAND_MAX = 2147483647;
|
2022-10-18 13:57:40 +00:00
|
|
|
|
|
|
|
export const FACETOOL_TYPES = ['gfpgan', 'codeformer'] as const;
|
2022-11-02 21:08:00 +00:00
|
|
|
|
2023-04-22 12:55:43 +00:00
|
|
|
export const NODE_MIN_WIDTH = 250;
|