From a60e2b7c776cace2aafd19bcbd04b702c9fd4b85 Mon Sep 17 00:00:00 2001 From: skunkworxdark Date: Thu, 8 Feb 2024 18:29:29 +0000 Subject: [PATCH] fix existing graphs with cfg_RescaleMultiplier not used --- .../features/nodes/util/graph/buildCanvasImageToImageGraph.ts | 1 + .../nodes/util/graph/buildCanvasSDXLImageToImageGraph.ts | 1 + .../features/nodes/util/graph/buildCanvasSDXLTextToImageGraph.ts | 1 + .../src/features/nodes/util/graph/buildCanvasTextToImageGraph.ts | 1 + .../features/nodes/util/graph/buildLinearImageToImageGraph.ts | 1 + .../nodes/util/graph/buildLinearSDXLImageToImageGraph.ts | 1 + .../features/nodes/util/graph/buildLinearSDXLTextToImageGraph.ts | 1 + 7 files changed, 7 insertions(+) diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasImageToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasImageToImageGraph.ts index 7a4ca0096f..3002e05441 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasImageToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasImageToImageGraph.ts @@ -123,6 +123,7 @@ export const buildCanvasImageToImageGraph = (state: RootState, initialImage: Ima id: DENOISE_LATENTS, is_intermediate, cfg_scale, + cfg_rescale_multiplier, scheduler, steps, denoising_start: 1 - strength, diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLImageToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLImageToImageGraph.ts index 40f71930a3..1b586371a0 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLImageToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLImageToImageGraph.ts @@ -124,6 +124,7 @@ export const buildCanvasSDXLImageToImageGraph = (state: RootState, initialImage: id: SDXL_DENOISE_LATENTS, is_intermediate, cfg_scale, + cfg_rescale_multiplier, scheduler, steps, denoising_start: refinerModel ? Math.min(refinerStart, 1 - strength) : 1 - strength, diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLTextToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLTextToImageGraph.ts index 772990ee0e..91d9da4cb5 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLTextToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLTextToImageGraph.ts @@ -117,6 +117,7 @@ export const buildCanvasSDXLTextToImageGraph = (state: RootState): NonNullableGr id: SDXL_DENOISE_LATENTS, is_intermediate, cfg_scale, + cfg_rescale_multiplier, scheduler, steps, denoising_start: 0, diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasTextToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasTextToImageGraph.ts index 1869619346..967dd3ff4a 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasTextToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasTextToImageGraph.ts @@ -115,6 +115,7 @@ export const buildCanvasTextToImageGraph = (state: RootState): NonNullableGraph id: DENOISE_LATENTS, is_intermediate, cfg_scale, + cfg_rescale_multiplier, scheduler, steps, denoising_start: 0, diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearImageToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearImageToImageGraph.ts index 15d46053b9..c76776d94d 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearImageToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearImageToImageGraph.ts @@ -123,6 +123,7 @@ export const buildLinearImageToImageGraph = (state: RootState): NonNullableGraph type: 'denoise_latents', id: DENOISE_LATENTS, cfg_scale, + cfg_rescale_multiplier, scheduler, steps, denoising_start: 1 - strength, diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLImageToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLImageToImageGraph.ts index 585d80fd41..9ae602bcac 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLImageToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLImageToImageGraph.ts @@ -126,6 +126,7 @@ export const buildLinearSDXLImageToImageGraph = (state: RootState): NonNullableG type: 'denoise_latents', id: SDXL_DENOISE_LATENTS, cfg_scale, + cfg_rescale_multiplier, scheduler, steps, denoising_start: refinerModel ? Math.min(refinerStart, 1 - strength) : 1 - strength, diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLTextToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLTextToImageGraph.ts index 3af044e46d..222dc1a359 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLTextToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearSDXLTextToImageGraph.ts @@ -109,6 +109,7 @@ export const buildLinearSDXLTextToImageGraph = (state: RootState): NonNullableGr type: 'denoise_latents', id: SDXL_DENOISE_LATENTS, cfg_scale, + cfg_rescale_multiplier, scheduler, steps, denoising_start: 0,