Skip to content

Commit 3feff09

Browse files
psychedeliciousblessedcoolant
authored andcommitted
fixes #2049 use threshold not setting correct value
1 parent 4785a1c commit 3feff09

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

invokeai/frontend/dist/assets/index-8606d352.js renamed to invokeai/frontend/dist/assets/index-77adb35d.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

invokeai/frontend/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>InvokeAI - A Stable Diffusion Toolkit</title>
77
<link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" />
8-
<script type="module" crossorigin src="./assets/index-8606d352.js"></script>
8+
<script type="module" crossorigin src="./assets/index-77adb35d.js"></script>
99
<link rel="stylesheet" href="./assets/index-b0bf79f4.css">
1010
</head>
1111

invokeai/frontend/src/features/parameters/store/generationSlice.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,11 @@ export const generationSlice = createSlice({
268268
if (sampler) state.sampler = sampler;
269269
if (steps) state.steps = steps;
270270
if (cfg_scale) state.cfgScale = cfg_scale;
271-
if (threshold) state.threshold = threshold;
272-
if (typeof threshold === 'undefined') state.threshold = 0;
271+
if (typeof threshold === 'undefined') {
272+
state.threshold = 0;
273+
} else {
274+
state.threshold = threshold;
275+
}
273276
if (perlin) state.perlin = perlin;
274277
if (typeof perlin === 'undefined') state.perlin = 0;
275278
if (typeof seamless === 'boolean') state.seamless = seamless;

invokeai/frontend/stats.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)