Default to 4x in taskConfig

This commit is contained in:
patriceac
2022-12-27 23:27:25 -08:00
committed by GitHub
parent 25071c238c
commit dbcce2ee5d

@ -815,7 +815,7 @@ function createTask(task) {
taskConfig += `, <b>Fix Faces:</b> ${task.reqBody.use_face_correction}` taskConfig += `, <b>Fix Faces:</b> ${task.reqBody.use_face_correction}`
} }
if (task.reqBody.use_upscale) { if (task.reqBody.use_upscale) {
taskConfig += `, <b>Upscale:</b> ${task.reqBody.use_upscale} (${task.reqBody.upscale_amount}x)` taskConfig += `, <b>Upscale:</b> ${task.reqBody.use_upscale} (${task.reqBody.upscale_amount !== undefined ? task.reqBody.upscale_amount : '4'}x)`
} }
if (task.reqBody.use_hypernetwork_model) { if (task.reqBody.use_hypernetwork_model) {
taskConfig += `, <b>Hypernetwork:</b> ${task.reqBody.use_hypernetwork_model}` taskConfig += `, <b>Hypernetwork:</b> ${task.reqBody.use_hypernetwork_model}`