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] 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}`