From 75fb3f429fecfba87b088f29043d8b56b1af9385 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Mon, 14 Aug 2023 09:26:01 +1200 Subject: [PATCH] re: Readd Refiner Step Math but cap max steps to 1000 --- .../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 adce34adf5..16256e05af 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addSDXLRefinerToGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graphBuilders/addSDXLRefinerToGraph.ts @@ -90,7 +90,7 @@ export const addSDXLRefinerToGraph = ( type: 'denoise_latents', id: SDXL_REFINER_DENOISE_LATENTS, cfg_scale: refinerCFGScale, - steps: refinerSteps, + steps: Math.min(refinerSteps / (1 - Math.min(refinerStart, 0.99)), 1000), scheduler: refinerScheduler, denoising_start: refinerStart, denoising_end: 1,