1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-21 21:19:31 +01:00
This commit is contained in:
Nayam Amarshe 2023-11-27 07:51:17 +05:30
parent c77e0f6c92
commit d108a75612
2 changed files with 23 additions and 14 deletions

View File

@ -92,19 +92,22 @@ const imageUpscayl = async (event, payload: ImageUpscaylPayload) => {
) )
); );
} else { } else {
logit("✅ Upscayl Variables: ", { logit(
model, "✅ Upscayl Variables: ",
gpuId, JSON.stringify({
saveImageAs, model,
inputDir, gpuId,
outputDir, saveImageAs,
fullfileName, inputDir,
fileName, outputDir,
initialScale: initialScale, fullfileName,
desiredScale, fileName,
outFile, initialScale: initialScale,
compression, desiredScale,
}); outFile,
compression,
})
);
const upscayl = spawnUpscayl( const upscayl = spawnUpscayl(
"realesrgan", "realesrgan",
getSingleImageArguments( getSingleImageArguments(

View File

@ -62,7 +62,13 @@ export function setChildProcesses(value: {
kill: () => boolean; kill: () => boolean;
}): void { }): void {
childProcesses.push(value); childProcesses.push(value);
logit("👶 Updating Child Processes: ", childProcesses); logit(
"👶 Updating Child Processes: ",
JSON.stringify({
binary: childProcesses[0].process.spawnfile,
args: childProcesses[0].process.spawnargs,
})
);
} }
export function setNoImageProcessing(value: boolean): void { export function setNoImageProcessing(value: boolean): void {