fix: SDXL Canvas Inpaint & Outpaint not respecting SDXL Refiner start value

This commit is contained in:
blessedcoolant 2023-08-14 12:13:29 +12:00
parent fecad2c014
commit 957ee6d370
2 changed files with 6 additions and 2 deletions

View File

@ -136,7 +136,9 @@ export const buildCanvasSDXLInpaintGraph = (
steps: steps,
cfg_scale: cfg_scale,
scheduler: scheduler,
denoising_start: 1 - strength,
denoising_start: shouldUseSDXLRefiner
? Math.min(refinerStart, 1 - strength)
: 1 - strength,
denoising_end: shouldUseSDXLRefiner ? refinerStart : 1,
},
[LATENTS_TO_IMAGE]: {

View File

@ -162,7 +162,9 @@ export const buildCanvasSDXLOutpaintGraph = (
steps: steps,
cfg_scale: cfg_scale,
scheduler: scheduler,
denoising_start: 1 - strength,
denoising_start: shouldUseSDXLRefiner
? Math.min(refinerStart, 1 - strength)
: 1 - strength,
denoising_end: shouldUseSDXLRefiner ? refinerStart : 1,
},
[LATENTS_TO_IMAGE]: {