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:
parent
8e3e9746f6
commit
b8a76f7af7
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user