From bed9089fe602c2572fbbba41a1669c2c29c274d1 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 21 Mar 2025 09:04:09 +1000 Subject: [PATCH] refactor(ui): just always set guidance to 30 when using FLUX Fill --- .../features/nodes/util/graph/generation/buildFLUXGraph.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts index 33b0958e49..897b8e2c14 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts @@ -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);