Initial Slider & Img2Img=1 Updates (#2467)

Adding a slider for Hi Res Fix to control Img2Img

Updated Img2img to accept values of 1 (replacing Inpaint Replace)
This commit is contained in:
Lincoln Stein 2023-02-08 15:50:44 -05:00 committed by GitHub
commit 2aad4dab90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 35 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" />
<script type="module" crossorigin src="./assets/index-4baf9db0.js"></script>
<script type="module" crossorigin src="./assets/index-8606d352.js"></script>
<link rel="stylesheet" href="./assets/index-b0bf79f4.css">
</head>

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}

File diff suppressed because one or more lines are too long

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