2022-09-16 17:18:15 +00:00
|
|
|
// TODO: use Enums?
|
|
|
|
|
2023-04-28 02:28:39 +00:00
|
|
|
export const DIFFUSERS_SCHEDULERS: Array<string> = [
|
2023-02-07 05:26:06 +00:00
|
|
|
'ddim',
|
2023-05-11 14:59:43 +00:00
|
|
|
'lms',
|
|
|
|
'pndm',
|
|
|
|
'heun',
|
|
|
|
'euler',
|
|
|
|
'euler_k',
|
|
|
|
'euler_a',
|
|
|
|
'kdpm_2',
|
|
|
|
'kdpm_2_a',
|
2023-05-11 14:23:33 +00:00
|
|
|
'dpmpp_2s',
|
2023-05-11 14:59:43 +00:00
|
|
|
'dpmpp_2m',
|
|
|
|
'dpmpp_2m_k',
|
2023-05-11 08:52:37 +00:00
|
|
|
'unipc',
|
2022-09-16 17:18:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
// Valid image widths
|
2023-04-17 16:28:58 +00:00
|
|
|
export const WIDTHS: Array<number> = Array.from(Array(64)).map(
|
|
|
|
(_x, i) => (i + 1) * 64
|
2023-03-18 06:00:29 +00:00
|
|
|
);
|
2022-09-16 17:18:15 +00:00
|
|
|
|
|
|
|
// Valid image heights
|
2023-04-17 16:28:58 +00:00
|
|
|
export const HEIGHTS: Array<number> = Array.from(Array(64)).map(
|
|
|
|
(_x, i) => (i + 1) * 64
|
2023-03-18 06:00:29 +00:00
|
|
|
);
|
2022-09-16 17:18:15 +00:00
|
|
|
|
|
|
|
// Valid upscaling levels
|
|
|
|
export const UPSCALING_LEVELS: Array<{ key: string; value: number }> = [
|
2022-09-18 07:33:09 +00:00
|
|
|
{ key: '2x', value: 2 },
|
|
|
|
{ key: '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;
|