mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): use 1024x1024 for optimal FLUX dimensions
This commit is contained in:
committed by
psychedelicious
parent
d43b3ba5c6
commit
a03bf5b585
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user