InvokeAI/invokeai/frontend/web/src/app/constants.ts

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

38 lines
676 B
TypeScript
Raw Normal View History

// TODO: use Enums?
2023-05-16 00:40:26 +00:00
export const SCHEDULERS = [
'ddim',
'lms',
2023-06-17 18:00:16 +00:00
'lms_k',
'euler',
'euler_k',
'euler_a',
'dpmpp_2s',
2023-06-17 18:00:16 +00:00
'dpmpp_2s_k',
'dpmpp_2m',
'dpmpp_2m_k',
'kdpm_2',
'kdpm_2_a',
'deis',
'ddpm',
'pndm',
'heun',
'heun_k',
2023-05-11 08:52:37 +00:00
'unipc',
2023-05-16 00:40:26 +00:00
] as const;
export type Scheduler = (typeof SCHEDULERS)[number];
// Valid upscaling levels
export const UPSCALING_LEVELS: Array<{ label: string; value: string }> = [
{ label: '2x', value: '2' },
{ label: '4x', value: '4' },
];
export const NUMPY_RAND_MIN = 0;
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;