- Using Real-ESRGAN repository for upscaling images.
- I am using Automatic111 WebUI for Stable Diffusion. Because of my low VRAM I can not upscale my images so I made a GUI for upscaling my outputs. As I can see from the options in WebUI, it is using Real-ESRGAN as default.
- I have another repository about prompts. Briefly you can parse prompts from Markdown files, translate your prompts. You can generate datasets, train your prompt generator and generate prompts with it. You can access the repository here.
- VenvManager is added. Don't have to press Startup button after starting. It is handled by VenvManager.
- Logging system is updated.
- Tiling is done by default.
- Not using GPU bug is fixed. Delete Real-ESRGAN folder and click Startup button.
- As a note, if you have encountered with black output, select FP32 option.
- Modern GUI style is added with customtkinter
- Virtual environment automation is added. No need to configure manually. Just run
python start.py
command. - Startup and Initialize functions are done in threads so no more freezing.
- Selection for FP32 feature is added.
- I did not hide the command outputs because some processes take minutes and it makes it difficult to understand what is going on. If there are no errors and application is not terminated, it is fine.
- Tested in Windows OS environment.
- Venv, customtkinter and Tkinter packages are used.
- Git has to be in PATH variable.
- Tested with Python 3.10.6 and used Tkinter for GUI. As a note for Python 3.10.6 version Tkinter comes as default package. You can easily test it with these commands:
- From command line enter
python
command and press Enter button. - Write
import tkinter
command and press Enter button. If there are no errors. You are ready to go. - Write
exit()
command and press Enter button to exit.
- Open terminal or cmd and clone the repository and get into folder
git clone https://github.com/alpertunga-bile/AIUpscaleGUI.git & cd AIUpscaleGUI
- Start the application with
python start.py
command. This command is going to look for 'venv' file for virtual environment. It is going to setup the dependencies (customtkinter) and start the application. After the first setup, it is just going to start the GUI application. - Press the Startup button. Check if Real-ESRGAN installed correctly. If not delete paths.json and third-party folder and start the application again.
- Choose your input and output directories.
- Then select which model and attributes you want to use.
- After selecting them, press Initialize button and wait for DONE!!! text to appear under the button or in terminal.
- If you have encountered with black output, select FP32 option.
- You can choose one folder that includes images or you can choose one folder that includes folders that include images (Hmm?).
Folder1 |----> image1 |----> image2
Folder1 |----> Folder2 | |----> image1 | |----> image2 | |----> Folder3 |----> image3 |----> image4
- You can not choose multiple directories. You have to use the Option 2.
- Currently RealESRGAN_x4plus, RealESRNet_x4plus, RealESRGAN_x4plus_anime_6B, RealESRGAN_x2plus, realesr-general-x4v3 models can be used. You dont have to download them, script will handle this.
- x2, x3 and x4 scales are supported.
- You can open and close face enhancement feature.
- You can select FP32 feature.
- Prompts are parsed with Prompt Markdown Parser project.
- RealESRGAN_x4plus model, x4 scale and face enhancement are used.
- 512x512 images are created with NeverEndingDreamBakedVAE model, model hash is 64b14b6ca5. CodeFormer is used for face restoration.
512x512 | 2048x2048 |
---|---|
512x512 | 2048x2048 |
---|---|