mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-19 05:24:33 -05:00
fixes #2049 use threshold not setting correct value
This commit is contained in:
committed by
blessedcoolant
parent
4785a1cd05
commit
3feff09fb3
@@ -268,8 +268,11 @@ export const generationSlice = createSlice({
|
||||
if (sampler) state.sampler = sampler;
|
||||
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 (typeof threshold === 'undefined') {
|
||||
state.threshold = 0;
|
||||
} else {
|
||||
state.threshold = threshold;
|
||||
}
|
||||
if (perlin) state.perlin = perlin;
|
||||
if (typeof perlin === 'undefined') state.perlin = 0;
|
||||
if (typeof seamless === 'boolean') state.seamless = seamless;
|
||||
|
||||
Reference in New Issue
Block a user