fix: SDXL Inpaint & Outpaint using regular Img2Img strength

This commit is contained in:
blessedcoolant
2023-08-14 12:55:18 +12:00
parent 3d8da67be3
commit 58d5c61c79
2 changed files with 12 additions and 6 deletions

View File

@ -53,7 +53,6 @@ export const buildCanvasSDXLInpaintGraph = (
cfgScale: cfg_scale, cfgScale: cfg_scale,
scheduler, scheduler,
steps, steps,
img2imgStrength: strength,
iterations, iterations,
seed, seed,
shouldRandomizeSeed, shouldRandomizeSeed,
@ -64,8 +63,12 @@ export const buildCanvasSDXLInpaintGraph = (
maskBlurMethod, maskBlurMethod,
} = state.generation; } = state.generation;
const { shouldUseSDXLRefiner, refinerStart, shouldConcatSDXLStylePrompt } = const {
state.sdxl; sdxlImg2ImgDenoisingStrength: strength,
shouldUseSDXLRefiner,
refinerStart,
shouldConcatSDXLStylePrompt,
} = state.sdxl;
if (!model) { if (!model) {
log.error('No model found in state'); log.error('No model found in state');

View File

@ -59,7 +59,6 @@ export const buildCanvasSDXLOutpaintGraph = (
cfgScale: cfg_scale, cfgScale: cfg_scale,
scheduler, scheduler,
steps, steps,
img2imgStrength: strength,
iterations, iterations,
seed, seed,
shouldRandomizeSeed, shouldRandomizeSeed,
@ -72,8 +71,12 @@ export const buildCanvasSDXLOutpaintGraph = (
infillMethod, infillMethod,
} = state.generation; } = state.generation;
const { shouldUseSDXLRefiner, refinerStart, shouldConcatSDXLStylePrompt } = const {
state.sdxl; sdxlImg2ImgDenoisingStrength: strength,
shouldUseSDXLRefiner,
refinerStart,
shouldConcatSDXLStylePrompt,
} = state.sdxl;
if (!model) { if (!model) {
log.error('No model found in state'); log.error('No model found in state');