fix(ui): use 1024x1024 for optimal FLUX dimensions

This commit is contained in:
Mary Hipp
2024-09-16 11:04:17 -04:00
committed by psychedelicious
parent d43b3ba5c6
commit a03bf5b585

View File

@@ -6,7 +6,7 @@ import type { ModelIdentifierField } from 'features/nodes/types/common';
* @returns The optimal dimension for the model
*/
export const getOptimalDimension = (model?: ModelIdentifierField | null): number =>
model?.base === 'sdxl' ? 1024 : 512;
model?.base === 'sdxl' || model?.base === 'flux' ? 1024 : 512;
const MIN_AREA_FACTOR = 0.8;
const MAX_AREA_FACTOR = 1.2;