diff --git a/main/index.js b/main/index.js index be17413..6510a36 100644 --- a/main/index.js +++ b/main/index.js @@ -125,51 +125,51 @@ ipcMain.on(commands.UPSCAYL, async (event, payload) => { // UPSCALE console.log("PRODUCTION? :", isDev); console.log("EXEC: ", execPath); - console.log("MODEL: ", modelsPath + "/" + model) + console.log("MODEL: ", modelsPath + "/" + model); if (fs.existsSync(outFile)) { mainWindow.webContents.send(commands.UPSCAYL_DONE, outFile); } else { - let upscayl = model.includes("realesrgan") ? - spawn( - execPath + '-realesrgan', - [ - "-i", - inputDir + "/" + fullfileName, - "-o", - outFile, - "-s", - scale === 2 ? 4 : scale, - "-m", - modelsPath, - "-n", - model, - ], - { - cwd: null, - detached: false, - } - ) - : - spawn( - execPath + '-realsr', - [ - "-i", - inputDir + "/" + fullfileName, - "-o", - outFile, - "-s", - scale === 2 ? 4 : scale, - "-m", - modelsPath+ "/" + model, - ], - { - cwd: null, - detached: false, - } - ) - ; + let upscayl = model.includes("realesrgan") + ? spawn( + execPath + "-realesrgan", + [ + "-i", + inputDir + "/" + fullfileName, + "-o", + outFile, + "-s", + scale === 2 ? 4 : scale, + "-m", + modelsPath, + "-n", + model, + ], + { + cwd: null, + detached: false, + } + ) + : spawn( + execPath + "-realsr", + [ + "-i", + inputDir + "/" + fullfileName, + "-o", + outFile, + "-s", + 4, + "-x", + "-m", + modelsPath + "/" + model, + ], + { + cwd: null, + detached: false, + } + ); let failed = false; + upscayl.stderr.on("data", (stderr) => { console.log(stderr.toString()); stderr = stderr.toString(); diff --git a/renderer/components/LeftPaneSteps.jsx b/renderer/components/LeftPaneSteps.jsx index ba65b00..7be3652 100644 --- a/renderer/components/LeftPaneSteps.jsx +++ b/renderer/components/LeftPaneSteps.jsx @@ -2,9 +2,9 @@ import React from "react"; function LeftPaneSteps(props) { return ( -
+
{/* STEP 1 */} -
+

Step 1

+ {/* STEP 2 */} -
+

Step 2

Select Upscaling Type

@@ -63,7 +64,7 @@ function LeftPaneSteps(props) {
*/} {/* STEP 3 */} -
+

Step 3

Defaults to Image's path @@ -77,7 +78,7 @@ function LeftPaneSteps(props) {

{/* STEP 4 */} -
+

Step 4