mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
use reference to sampler_name
This commit is contained in:
parent
660e665cf3
commit
e75141150f
@ -39,18 +39,7 @@ export function buildTxt2ImgNode(state: RootState): TextToImageInvocation {
|
|||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
cfg_scale,
|
cfg_scale,
|
||||||
sampler_name: sampler as
|
sampler_name: sampler as TextToImageInvocation['sampler_name'],
|
||||||
| 'ddim'
|
|
||||||
| 'dpmpp_2'
|
|
||||||
| 'k_dpm_2'
|
|
||||||
| 'k_dpm_2_a'
|
|
||||||
| 'k_dpmpp_2'
|
|
||||||
| 'k_euler'
|
|
||||||
| 'k_euler_a'
|
|
||||||
| 'k_heun'
|
|
||||||
| 'k_lms'
|
|
||||||
| 'plms'
|
|
||||||
| undefined,
|
|
||||||
seamless,
|
seamless,
|
||||||
model: openModel as string | undefined,
|
model: openModel as string | undefined,
|
||||||
progress_images: shouldDisplayInProgressType === 'full-res',
|
progress_images: shouldDisplayInProgressType === 'full-res',
|
||||||
@ -85,18 +74,7 @@ export function buildImg2ImgNode(state: RootState): ImageToImageInvocation {
|
|||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
cfg_scale: cfgScale,
|
cfg_scale: cfgScale,
|
||||||
sampler_name: sampler as
|
sampler_name: sampler as ImageToImageInvocation['sampler_name'],
|
||||||
| 'ddim'
|
|
||||||
| 'dpmpp_2'
|
|
||||||
| 'k_dpm_2'
|
|
||||||
| 'k_dpm_2_a'
|
|
||||||
| 'k_dpmpp_2'
|
|
||||||
| 'k_euler'
|
|
||||||
| 'k_euler_a'
|
|
||||||
| 'k_heun'
|
|
||||||
| 'k_lms'
|
|
||||||
| 'plms'
|
|
||||||
| undefined,
|
|
||||||
seamless,
|
seamless,
|
||||||
model: model as string | undefined,
|
model: model as string | undefined,
|
||||||
progress_images: shouldDisplayInProgressType === 'full-res',
|
progress_images: shouldDisplayInProgressType === 'full-res',
|
||||||
|
Loading…
Reference in New Issue
Block a user