refactor(ui): just always set guidance to 30 when using FLUX Fill

This commit is contained in:
psychedelicious
2025-03-21 09:04:09 +10:00
parent d34a4f765c
commit bed9089fe6

View File

@@ -84,13 +84,10 @@ export const buildFLUXGraph = async (
// translations.
assert(generationMode === 'inpaint' || generationMode === 'outpaint', t('toast.fluxFillIncompatibleWithT2IAndI2I'));
// FLUX Fill wants much higher guidance values than normal FLUX - silently "fix" the value for the user if it is
// way too low.
// FLUX Fill wants much higher guidance values than normal FLUX - silently "fix" the value for the user.
// TODO(psyche): Figure out a way to alert the user that this is happening - maybe return warnings from the graph
// builder and toast them?
if (guidance < 25) {
guidance = 30;
}
guidance = 30;
}
const { positivePrompt } = getPresetModifiedPrompts(state);