* Bug fixes for new Threshold and Perlin options

This commit is contained in:
Peter Baylies 2022-10-06 08:46:27 -04:00
parent 2f29b78a00
commit 6d475ee290
4 changed files with 22 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,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.d9916e7a.js"></script>
<script type="module" crossorigin src="/assets/index.d6e02692.js"></script>
<link rel="stylesheet" href="/assets/index.853a336f.css">
</head>

View File

@ -18,6 +18,8 @@ const SeedOptions = () => {
</Flex>
<Flex gap={2}>
<Threshold />
</Flex>
<Flex gap={2}>
<Perlin />
</Flex>
</Flex>

View File

@ -246,7 +246,9 @@ export const optionsSlice = createSlice({
if (steps) state.steps = steps;
if (cfg_scale) state.cfgScale = cfg_scale;
if (threshold) state.threshold = threshold;
if (typeof threshold === 'undefined') state.threshold = 0;
if (perlin) state.perlin = perlin;
if (typeof perlin === 'undefined') state.perlin = 0;
if (typeof seamless === 'boolean') state.seamless = seamless;
if (width) state.width = width;
if (height) state.height = height;