feat(ui): control net UI weights 0 to 2

This commit is contained in:
psychedelicious 2023-07-15 17:41:35 +10:00
parent 8f66d826a5
commit 7b6d91c69f

View File

@ -38,11 +38,11 @@ const ParamControlNetWeight = (props: ParamControlNetWeightProps) => {
sliderFormLabelProps={{ pb: 2 }} sliderFormLabelProps={{ pb: 2 }}
value={weight} value={weight}
onChange={handleWeightChanged} onChange={handleWeightChanged}
min={-1} min={0}
max={1} max={2}
step={0.01} step={0.01}
withSliderMarks={!mini} withSliderMarks={!mini}
sliderMarks={[-1, 0, 1]} sliderMarks={[0, 1, 2]}
/> />
); );
}; };