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

View File

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

View File

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