feat(ui): add more w/h options

This commit is contained in:
psychedelicious
2023-03-18 17:00:29 +11:00
parent 93b38707b2
commit f22c7d0da6

View File

@ -31,18 +31,14 @@ export const DIFFUSERS_SAMPLERS: Array<string> = [
]; ];
// Valid image widths // Valid image widths
export const WIDTHS: Array<number> = [ export const WIDTHS: Array<number> = Array.from(Array(65)).map(
64, 128, 192, 256, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, (_x, i) => i * 64
1024, 1088, 1152, 1216, 1280, 1344, 1408, 1472, 1536, 1600, 1664, 1728, 1792, );
1856, 1920, 1984, 2048,
];
// Valid image heights // Valid image heights
export const HEIGHTS: Array<number> = [ export const HEIGHTS: Array<number> = Array.from(Array(65)).map(
64, 128, 192, 256, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, (_x, i) => i * 64
1024, 1088, 1152, 1216, 1280, 1344, 1408, 1472, 1536, 1600, 1664, 1728, 1792, );
1856, 1920, 1984, 2048,
];
// Valid upscaling levels // Valid upscaling levels
export const UPSCALING_LEVELS: Array<{ key: string; value: number }> = [ export const UPSCALING_LEVELS: Array<{ key: string; value: number }> = [