Initial Slider & Img2Img=1 Updates

This commit is contained in:
Kent Keirsey 2023-02-08 22:12:30 +11:00 committed by psychedelicious
parent 23aaf54f56
commit 9826f80d7f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export default function ImageToImageStrength(props: ImageToImageStrengthProps) {
label={label}
step={0.01}
min={0.01}
max={0.99}
max={1}
onChange={handleChangeStrength}
value={img2imgStrength}
isInteger={false}

View File

@ -425,7 +425,7 @@ class Generate:
assert cfg_scale > 1.0, 'CFG_Scale (-C) must be >1.0'
assert threshold >= 0.0, '--threshold must be >=0.0'
assert (
0.0 < strength < 1.0
0.0 < strength <= 1.0
), 'img2img and inpaint strength can only work with 0.0 < strength < 1.0'
assert (
0.0 <= variation_amount <= 1.0