mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): handle random seeds
This commit is contained in:
parent
eda334bc34
commit
f9c243d29f
@ -29,13 +29,14 @@ export function buildTxt2ImgNode(
|
|||||||
cfgScale: cfg_scale,
|
cfgScale: cfg_scale,
|
||||||
sampler,
|
sampler,
|
||||||
seamless,
|
seamless,
|
||||||
|
shouldRandomizeSeed,
|
||||||
} = generation;
|
} = generation;
|
||||||
|
|
||||||
// missing fields in TextToImageInvocation: strength, hires_fix
|
// missing fields in TextToImageInvocation: strength, hires_fix
|
||||||
return {
|
return {
|
||||||
type: 'txt2img',
|
type: 'txt2img',
|
||||||
prompt,
|
prompt,
|
||||||
seed,
|
seed: shouldRandomizeSeed ? -1 : seed,
|
||||||
steps,
|
steps,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
@ -66,12 +67,13 @@ export function buildImg2ImgNode(
|
|||||||
img2imgStrength: strength,
|
img2imgStrength: strength,
|
||||||
shouldFitToWidthHeight: fit,
|
shouldFitToWidthHeight: fit,
|
||||||
initialImage,
|
initialImage,
|
||||||
|
shouldRandomizeSeed,
|
||||||
} = generation;
|
} = generation;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'img2img',
|
type: 'img2img',
|
||||||
prompt,
|
prompt,
|
||||||
seed,
|
seed: shouldRandomizeSeed ? -1 : seed,
|
||||||
steps,
|
steps,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
|
Loading…
Reference in New Issue
Block a user