mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix refiner steps calculation for edge case of start = 1
This commit is contained in:
parent
75b0507434
commit
a6e544ebd5
@ -95,7 +95,7 @@ export const addSDXLRefinerToGraph = (
|
|||||||
type: 'l2l_sdxl',
|
type: 'l2l_sdxl',
|
||||||
id: SDXL_REFINER_LATENTS_TO_LATENTS,
|
id: SDXL_REFINER_LATENTS_TO_LATENTS,
|
||||||
cfg_scale: refinerCFGScale,
|
cfg_scale: refinerCFGScale,
|
||||||
steps: refinerSteps / (1 - refinerStart),
|
steps: refinerStart === 1 ? 1000 : refinerSteps / (1 - refinerStart),
|
||||||
scheduler: refinerScheduler,
|
scheduler: refinerScheduler,
|
||||||
denoising_start: refinerStart,
|
denoising_start: refinerStart,
|
||||||
denoising_end: 1,
|
denoising_end: 1,
|
||||||
|
@ -46,7 +46,6 @@ const ParamSDXLImg2ImgDenoisingStrength = () => {
|
|||||||
withInput
|
withInput
|
||||||
withSliderMarks
|
withSliderMarks
|
||||||
withReset
|
withReset
|
||||||
sliderNumberInputProps={{ max: 0.99 }}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -36,12 +36,11 @@ const ParamSDXLRefinerStart = () => {
|
|||||||
<IAISlider
|
<IAISlider
|
||||||
label="Refiner Start"
|
label="Refiner Start"
|
||||||
step={0.01}
|
step={0.01}
|
||||||
min={0.01}
|
min={0}
|
||||||
max={0.99}
|
max={1}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
handleReset={handleReset}
|
handleReset={handleReset}
|
||||||
value={refinerStart}
|
value={refinerStart}
|
||||||
sliderNumberInputProps={{ max: 0.99 }}
|
|
||||||
withInput
|
withInput
|
||||||
withReset
|
withReset
|
||||||
withSliderMarks
|
withSliderMarks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user