From dbcce2ee5d3fdfa0e9507c5c0b04df4889ec0745 Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Tue, 27 Dec 2022 23:27:25 -0800 Subject: [PATCH 1/2] Default to 4x in taskConfig --- ui/media/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index c4dbe958..8c4789ea 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -815,7 +815,7 @@ function createTask(task) { taskConfig += `, Fix Faces: ${task.reqBody.use_face_correction}` } if (task.reqBody.use_upscale) { - taskConfig += `, Upscale: ${task.reqBody.use_upscale} (${task.reqBody.upscale_amount}x)` + taskConfig += `, Upscale: ${task.reqBody.use_upscale} (${task.reqBody.upscale_amount !== undefined ? task.reqBody.upscale_amount : '4'}x)` } if (task.reqBody.use_hypernetwork_model) { taskConfig += `, Hypernetwork: ${task.reqBody.use_hypernetwork_model}` From 2859c94fea14612a60be5dba62896849c64ce428 Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Tue, 27 Dec 2022 23:36:43 -0800 Subject: [PATCH 2/2] Applying Madrang's suggestion --- ui/media/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 8c4789ea..07bd2e5f 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -815,7 +815,7 @@ function createTask(task) { taskConfig += `, Fix Faces: ${task.reqBody.use_face_correction}` } if (task.reqBody.use_upscale) { - taskConfig += `, Upscale: ${task.reqBody.use_upscale} (${task.reqBody.upscale_amount !== undefined ? task.reqBody.upscale_amount : '4'}x)` + taskConfig += `, Upscale: ${task.reqBody.use_upscale} (${task.reqBody.upscale_amount || 4}x)` } if (task.reqBody.use_hypernetwork_model) { taskConfig += `, Hypernetwork: ${task.reqBody.use_hypernetwork_model}`