Forum Discussion
The best AI image upscaler for enlarging low resolution photos
The Advanced Way (For Developers & Enthusiasts) - Using Python
This method offers the most control and access to the latest features and experimental models.
Prerequisites: You need to have Python and Git installed on your computer.
1. Installation
Open your terminal (Command Prompt, PowerShell, etc.) and run the following commands one by one:
# Clone the Real-ESRGAN repository
git clone https://github.com/xinntao/Real-ESRGAN.git
# Navigate into the cloned folder
cd Real-ESRGAN
# Install the required Python packages
pip install basicsr
pip install facexlib
pip install gfpgan
pip install -r requirements.txt
# Install the Real-ESRGAN package itself
python setup.py develop2. Download Pre-trained Models
You need to download the AI models. They are usually downloaded automatically the first time you run a command, but you can also download them manually from the project's GitHub page and place them in the weights folder.
3. Upscale an Image
With everything set up, you can now use the inference_realesrgan.py script.
python inference_realesrgan.py -n RealESRGAN_x4plus -i input.jpg --outscale 4 -o results/-n RealESRGAN_x4plus: Specifies the model name.
-i input.jpg: Path to your input image.
--outscale 4: Desired upscale factor.
-o results/: Output directory.
For most users, starting with free AI image upscaler is the best way to experience the power of Real-ESRGAN without any hassle. If you need more control, then move on to the other methods.