fix(ui): fix refiner steps calculation for edge case of start = 1

This commit is contained in:
psychedelicious 2023-07-26 13:36:39 +10:00
parent 75b0507434
commit a6e544ebd5
3 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -46,7 +46,6 @@ const ParamSDXLImg2ImgDenoisingStrength = () => {
withInput
withSliderMarks
withReset
sliderNumberInputProps={{ max: 0.99 }}
/>
);
};

View File

@ -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