1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-30 18:24:27 +01:00

Add Fix for #566

This commit is contained in:
Nayam Amarshe 2023-11-10 18:45:48 +05:30
parent 8e3e9746f6
commit b8a76f7af7
4 changed files with 12 additions and 4 deletions

View File

@ -39,7 +39,9 @@ const batchUpscayl = async (event, payload) => {
const isDefaultModel = DEFAULT_MODELS.includes(model);
let scale = "4";
if (model.includes("x2")) {
if (model.includes("x1")) {
scale = "1";
} else if (model.includes("x2")) {
scale = "2";
} else if (model.includes("x3")) {
scale = "3";

View File

@ -44,7 +44,9 @@ const doubleUpscayl = async (event, payload) => {
const fileName = parse(fullfileName).name;
let initialScale = "4";
if (model.includes("x2")) {
if (model.includes("x1")) {
initialScale = "1";
} else if (model.includes("x2")) {
initialScale = "2";
} else if (model.includes("x3")) {
initialScale = "3";

View File

@ -52,7 +52,9 @@ const imageUpscayl = async (event, payload) => {
const fileExt = parse(fullfileName).ext;
let initialScale = "4";
if (model.includes("x2")) {
if (model.includes("x1")) {
initialScale = "1";
} else if (model.includes("x2")) {
initialScale = "2";
} else if (model.includes("x3")) {
initialScale = "3";

View File

@ -124,7 +124,9 @@ function LeftPaneImageSteps({
if (noImageProcessing) {
let initialScale = 4;
if (model.includes("x2")) {
if (model.includes("x1")) {
initialScale = 1;
} else if (model.includes("x2")) {
initialScale = 2;
} else if (model.includes("x3")) {
initialScale = 3;