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',
|
||||
id: SDXL_REFINER_LATENTS_TO_LATENTS,
|
||||
cfg_scale: refinerCFGScale,
|
||||
steps: refinerSteps / (1 - refinerStart),
|
||||
steps: refinerStart === 1 ? 1000 : refinerSteps / (1 - refinerStart),
|
||||
scheduler: refinerScheduler,
|
||||
denoising_start: refinerStart,
|
||||
denoising_end: 1,
|
||||
|
@ -46,7 +46,6 @@ const ParamSDXLImg2ImgDenoisingStrength = () => {
|
||||
withInput
|
||||
withSliderMarks
|
||||
withReset
|
||||
sliderNumberInputProps={{ max: 0.99 }}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
@ -36,12 +36,11 @@ const ParamSDXLRefinerStart = () => {
|
||||
<IAISlider
|
||||
label="Refiner Start"
|
||||
step={0.01}
|
||||
min={0.01}
|
||||
max={0.99}
|
||||
min={0}
|
||||
max={1}
|
||||
onChange={handleChange}
|
||||
handleReset={handleReset}
|
||||
value={refinerStart}
|
||||
sliderNumberInputProps={{ max: 0.99 }}
|
||||
withInput
|
||||
withReset
|
||||
withSliderMarks
|
||||
|
Loading…
Reference in New Issue
Block a user