mirror of
https://github.com/upscayl/upscayl.git
synced 2025-02-17 11:18:36 +01:00
addressed GPU selection bug as mentioned in issue #302
This commit is contained in:
parent
0573b6e8a0
commit
9432be1cc8
@ -461,6 +461,8 @@ ipcMain.on(commands.DOUBLE_UPSCAYL, async (event, payload) => {
|
|||||||
logit
|
logit
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
childProcesses.push(upscayl2);
|
childProcesses.push(upscayl2);
|
||||||
|
|
||||||
upscayl2.process.stderr.on("data", onData2);
|
upscayl2.process.stderr.on("data", onData2);
|
||||||
@ -522,6 +524,16 @@ ipcMain.on(commands.UPSCAYL, async (event, payload) => {
|
|||||||
logit
|
logit
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log("BRUH: " + getSingleImageArguments(
|
||||||
|
inputDir,
|
||||||
|
fullfileName,
|
||||||
|
outFile,
|
||||||
|
isDefaultModel ? modelsPath : customModelsFolderPath ?? modelsPath,
|
||||||
|
model,
|
||||||
|
scale,
|
||||||
|
gpuId,
|
||||||
|
saveImageAs
|
||||||
|
))
|
||||||
childProcesses.push(upscayl);
|
childProcesses.push(upscayl);
|
||||||
|
|
||||||
stopped = false;
|
stopped = false;
|
||||||
|
@ -22,7 +22,8 @@ export const getSingleImageArguments = (
|
|||||||
modelsPath,
|
modelsPath,
|
||||||
"-n",
|
"-n",
|
||||||
model,
|
model,
|
||||||
gpuId ? `-g ${gpuId}` : "",
|
gpuId ? "-g" : "",
|
||||||
|
gpuId ? gpuId : "",
|
||||||
"-f",
|
"-f",
|
||||||
saveImageAs,
|
saveImageAs,
|
||||||
];
|
];
|
||||||
@ -48,7 +49,8 @@ export const getSingleImageSharpenArguments = (
|
|||||||
"-x",
|
"-x",
|
||||||
"-m",
|
"-m",
|
||||||
modelsPath + slash + model,
|
modelsPath + slash + model,
|
||||||
gpuId ? `-g ${gpuId}` : "",
|
gpuId ? "-g" : "",
|
||||||
|
gpuId ? gpuId : "",
|
||||||
"-f",
|
"-f",
|
||||||
saveImageAs,
|
saveImageAs,
|
||||||
];
|
];
|
||||||
@ -75,7 +77,8 @@ export const getDoubleUpscaleArguments = (
|
|||||||
modelsPath,
|
modelsPath,
|
||||||
"-n",
|
"-n",
|
||||||
model,
|
model,
|
||||||
gpuId ? `-g ${gpuId}` : "",
|
gpuId ? "-g" : "",
|
||||||
|
gpuId ? gpuId : "",
|
||||||
"-f",
|
"-f",
|
||||||
saveImageAs,
|
saveImageAs,
|
||||||
];
|
];
|
||||||
@ -101,7 +104,8 @@ export const getDoubleUpscaleSecondPassArguments = (
|
|||||||
modelsPath,
|
modelsPath,
|
||||||
"-n",
|
"-n",
|
||||||
model,
|
model,
|
||||||
gpuId ? `-g ${gpuId}` : "",
|
gpuId ? "-g" : "",
|
||||||
|
gpuId ? gpuId : "",
|
||||||
"-f",
|
"-f",
|
||||||
isAlpha ? "" : saveImageAs,
|
isAlpha ? "" : saveImageAs,
|
||||||
];
|
];
|
||||||
@ -127,7 +131,8 @@ export const getBatchArguments = (
|
|||||||
modelsPath,
|
modelsPath,
|
||||||
"-n",
|
"-n",
|
||||||
model,
|
model,
|
||||||
gpuId ? `-g ${gpuId}` : "",
|
gpuId ? "-g" : "",
|
||||||
|
gpuId ? gpuId : "",
|
||||||
"-f",
|
"-f",
|
||||||
saveImageAs,
|
saveImageAs,
|
||||||
];
|
];
|
||||||
@ -153,7 +158,8 @@ export const getBatchSharpenArguments = (
|
|||||||
"-x",
|
"-x",
|
||||||
"-m",
|
"-m",
|
||||||
modelsPath + slash + model,
|
modelsPath + slash + model,
|
||||||
gpuId ? `-g ${gpuId}` : "",
|
gpuId ? "-g" : "",
|
||||||
|
gpuId ? gpuId : "",
|
||||||
"-f",
|
"-f",
|
||||||
saveImageAs,
|
saveImageAs,
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user