feat: add prompt translate handler

This commit is contained in:
RockYang
2023-12-11 06:56:00 +08:00
parent 91ed41b536
commit 5e1fe88b8b
5 changed files with 124 additions and 21 deletions

View File

@@ -502,14 +502,14 @@ const samplers = ["Euler a", "Euler", "DPM2 a Karras", "DPM++ 2S a Karras", "DPM
"LMS Karras", "DPM2 Karras", "DDIM", "PLMS", "UniPC", "LMS", "Heun",]
const scaleAlg = ["Latent", "ESRGAN_4x", "R-ESRGAN 4x+", "SwinIR_4x", "LDSR"]
const params = ref({
width: 512,
height: 512,
width: 1024,
height: 1024,
sampler: samplers[0],
seed: -1,
steps: 30,
cfg_scale: 7,
face_fix: false,
hd_fix: true,
hd_fix: false,
hd_redraw_rate: 0.7,
hd_scale: 2,
hd_scale_alg: scaleAlg[0],