Skip to content

Commit bed9089

Browse files
refactor(ui): just always set guidance to 30 when using FLUX Fill
1 parent d34a4f7 commit bed9089

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,10 @@ export const buildFLUXGraph = async (
8484
// translations.
8585
assert(generationMode === 'inpaint' || generationMode === 'outpaint', t('toast.fluxFillIncompatibleWithT2IAndI2I'));
8686

87-
// FLUX Fill wants much higher guidance values than normal FLUX - silently "fix" the value for the user if it is
88-
// way too low.
87+
// FLUX Fill wants much higher guidance values than normal FLUX - silently "fix" the value for the user.
8988
// TODO(psyche): Figure out a way to alert the user that this is happening - maybe return warnings from the graph
9089
// builder and toast them?
91-
if (guidance < 25) {
92-
guidance = 30;
93-
}
90+
guidance = 30;
9491
}
9592

9693
const { positivePrompt } = getPresetModifiedPrompts(state);

0 commit comments

Comments
 (0)