Djdefrag / RealScaler

RealScaler - image/video AI upscaler app (Real-ESRGAN)
MIT License
271 stars 17 forks source link

Help building RealScaler with Pyinstaller #21

Open robdsource opened 1 month ago

robdsource commented 1 month ago

Hi, I'm actually trying to restore an "old" movie from the 80's, since I'm only running Linux I use for now a VM with Windows 10 and the upscale is taking very long time (about 300 hours).

I'm aware that RealScaler only runs on Windows platform, notably because onnxruntime-directml work only with it.

I was able to build the python package with python 3.10 in a venv, everything ok on that side but the idea is to build the exe with AI models to make it portable, and so, running it directly on my computer through emulation with Wine which is much more efficient.

Please could you help me to achieve this ? I will be grateful for it.

Djdefrag commented 1 month ago

pyinstaller ^ --onefile ^ --noconsole ^ --windowed ^ --clean ^ --icon "PATH-TO-DIRECTORY/RealScaler/Assets/logo.ico" ^ --add-data "PATH-TO-DIRECTORY/RealScaler/AI-onnx;AI-onnx/" ^ --add-data "PATH-TO-DIRECTORY/RealScaler/Assets;Assets/" ^ "PATH-TO-DIRECTORY/RealScaler/RealScaler.py"

Hi my friend, i use this code in windows CMD.

Instead of "PATH-TO-DIRECTORY" you have to put your path down to the folders (C:/User/---/---)

robdsource commented 1 month ago

Many thanks @Djdefrag for your quick reply and for giving your build "recipe"! It was my first time with Pyinstaller but it worked well.

It's much more fast to upscale now, about 12 hours for the same movie but different settings of course, pretty awesome result!!!

Is there any way I can help you? Donation or to translate your app for example?

Djdefrag commented 1 month ago

Hi my friend,

I would appreciate it if you would support me on my apps on itch.io, in return you receive a precompiled .exe and access to all updates to come.

Thank you!