use reference to sampler_name

This commit is contained in:
maryhipp 2023-03-29 06:10:36 -07:00 committed by psychedelicious
parent 660e665cf3
commit e75141150f

View File

@ -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',