mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Possible fix to image to image / refiner setting sync
The main goal is to avoid noisy output no matter what the slider values are.
This commit is contained in:
parent
cbcd416b70
commit
4fe889bbf8
@ -98,6 +98,7 @@ export const addSDXLRefinerToGraph = (
|
||||
steps: refinerSteps / (1 - refinerStart),
|
||||
scheduler: refinerScheduler,
|
||||
denoising_start: refinerStart,
|
||||
denoising_end: 1,
|
||||
};
|
||||
|
||||
graph.edges.push(
|
||||
|
@ -36,10 +36,10 @@ export const buildLinearSDXLImageToImageGraph = (
|
||||
scheduler,
|
||||
steps,
|
||||
initialImage,
|
||||
img2imgStrength: strength,
|
||||
shouldFitToWidthHeight,
|
||||
width,
|
||||
height,
|
||||
img2imgStrength: strength,
|
||||
clipSkip,
|
||||
shouldUseCpuNoise,
|
||||
shouldUseNoiseSettings,
|
||||
@ -113,7 +113,10 @@ export const buildLinearSDXLImageToImageGraph = (
|
||||
cfg_scale,
|
||||
scheduler,
|
||||
steps,
|
||||
denoising_start: shouldUseSDXLRefiner ? refinerStart : 1 - strength,
|
||||
denoising_start: shouldUseSDXLRefiner
|
||||
? Math.min(refinerStart, 1 - strength)
|
||||
: 1 - strength,
|
||||
denoising_end: shouldUseSDXLRefiner ? refinerStart : 1,
|
||||
},
|
||||
[IMAGE_TO_LATENTS]: {
|
||||
type: 'i2l',
|
||||
@ -337,7 +340,7 @@ export const buildLinearSDXLImageToImageGraph = (
|
||||
controlnets: [],
|
||||
loras: [],
|
||||
clip_skip: clipSkip,
|
||||
strength,
|
||||
strength: strength,
|
||||
init_image: initialImage.imageName,
|
||||
positive_style_prompt: positiveStylePrompt,
|
||||
negative_style_prompt: negativeStylePrompt,
|
||||
|
@ -38,7 +38,7 @@ const ParamSDXLRefinerStart = () => {
|
||||
return (
|
||||
<IAISlider
|
||||
label="Refiner Start"
|
||||
step={shift ? 0.1 : 0.01}
|
||||
step={shift ? 0.05 : 0.01}
|
||||
min={0.01}
|
||||
max={1}
|
||||
onChange={handleChange}
|
||||
|
Loading…
Reference in New Issue
Block a user