mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-23 23:21:05 +01:00
added real-sr models and a working executable
This commit is contained in:
parent
6244b03888
commit
cee6639332
@ -125,11 +125,13 @@ ipcMain.on(commands.UPSCAYL, async (event, payload) => {
|
||||
// UPSCALE
|
||||
console.log("PRODUCTION? :", isDev);
|
||||
console.log("EXEC: ", execPath);
|
||||
console.log("MODEL: ", modelsPath + "/" + model)
|
||||
if (fs.existsSync(outFile)) {
|
||||
mainWindow.webContents.send(commands.UPSCAYL_DONE, outFile);
|
||||
} else {
|
||||
let upscayl = spawn(
|
||||
execPath,
|
||||
let upscayl = model.includes("realesrgan") ?
|
||||
spawn(
|
||||
execPath + '-realesrgan',
|
||||
[
|
||||
"-i",
|
||||
inputDir + "/" + fullfileName,
|
||||
@ -146,7 +148,26 @@ ipcMain.on(commands.UPSCAYL, async (event, payload) => {
|
||||
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 failed = false;
|
||||
upscayl.stderr.on("data", (stderr) => {
|
||||
|
@ -25,6 +25,8 @@ function LeftPaneSteps(props) {
|
||||
>
|
||||
<option value="realesrgan-x4plus">General Photo</option>
|
||||
<option value="realesrgan-x4plus-anime">Digital Art</option>
|
||||
<option value="models-DF2K">DF2K</option>
|
||||
<option value="models-DF2K_JPEG">DF2K_JPEG</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
import React from "react";
|
||||
import Animated from "../public/loading.svg";
|
||||
import Image from "next/image";
|
||||
|
||||
function ProgressBar(props) {
|
||||
return (
|
||||
|
0
resources/linux/bin/upscayl → resources/linux/bin/upscayl-realesrgan
Executable file → Normal file
0
resources/linux/bin/upscayl → resources/linux/bin/upscayl-realesrgan
Executable file → Normal file
BIN
resources/linux/bin/upscayl-realsr
Normal file
BIN
resources/linux/bin/upscayl-realsr
Normal file
Binary file not shown.
0
resources/mac/bin/upscayl → resources/mac/bin/upscayl-realesrgan
Executable file → Normal file
0
resources/mac/bin/upscayl → resources/mac/bin/upscayl-realesrgan
Executable file → Normal file
BIN
resources/mac/bin/upscayl-realsr
Normal file
BIN
resources/mac/bin/upscayl-realsr
Normal file
Binary file not shown.
BIN
resources/models/models-DF2K/x4.bin
Normal file
BIN
resources/models/models-DF2K/x4.bin
Normal file
Binary file not shown.
1001
resources/models/models-DF2K/x4.param
Normal file
1001
resources/models/models-DF2K/x4.param
Normal file
File diff suppressed because it is too large
Load Diff
BIN
resources/models/models-DF2K_JPEG/x4.bin
Normal file
BIN
resources/models/models-DF2K_JPEG/x4.bin
Normal file
Binary file not shown.
1001
resources/models/models-DF2K_JPEG/x4.param
Normal file
1001
resources/models/models-DF2K_JPEG/x4.param
Normal file
File diff suppressed because it is too large
Load Diff
BIN
resources/win/bin/upscayl-realsr.exe
Normal file
BIN
resources/win/bin/upscayl-realsr.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user