From c5389b3298190274941823f9357119337a348afb Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 26 Jul 2023 13:50:34 +1000 Subject: [PATCH] fix(ui): fix refiner steps math again --- .../features/nodes/util/graphBuilders/addSDXLRefinerToGraph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addSDXLRefinerToGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addSDXLRefinerToGraph.ts index f5fdeb6e84..c47c7be8b4 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addSDXLRefinerToGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addSDXLRefinerToGraph.ts @@ -95,7 +95,7 @@ export const addSDXLRefinerToGraph = ( type: 'l2l_sdxl', id: SDXL_REFINER_LATENTS_TO_LATENTS, cfg_scale: refinerCFGScale, - steps: refinerStart === 1 ? 1000 : refinerSteps / (1 - refinerStart), + steps: refinerSteps / (1 - Math.min(refinerStart, 0.99)), scheduler: refinerScheduler, denoising_start: refinerStart, denoising_end: 1,