Skip to main content

Overview

Real-ESRGAN provides several models optimized for general real-world images, including photos, screenshots, and natural scenes. This guide covers model selection and best practices for general image super-resolution.

RealESRGAN_x4plus (Primary)

The default and most versatile model for general images.
Specifications:
  • Upscale Factor: 4x
  • Architecture: RRDBNet (23 blocks)
  • Model Size: ~64MB
  • Best For: Photos, natural images, general scenes

realesr-general-x4v3 (Denoise Control)

A smaller, faster model with controllable denoising strength.
Specifications:
  • Upscale Factor: 4x
  • Architecture: SRVGGNetCompact (32 conv layers)
  • Model Size: ~17MB (much smaller than x4plus)
  • Best For: Images where you want to control noise vs. detail trade-off
  • Denoise Strength: 0 (keep noise/texture) to 1 (strong denoise)
The realesr-general-x4v3 model requires both the base model and the denoise model (wdn) for the -dn option to work.

RealESRGAN_x2plus (2x Upscaling)

For moderate upscaling when 4x is too aggressive.
Specifications:
  • Upscale Factor: 2x
  • Architecture: RRDBNet (23 blocks)
  • Best For: Images that need moderate enhancement

RealESRNet_x4plus (No GAN)

ESRGAN model without GAN training - produces smoother results.
Specifications:
  • Upscale Factor: 4x
  • Architecture: RRDBNet (23 blocks)
  • Best For: When you want smoother results without GAN artifacts

Model Comparison

Common Usage Patterns

Standard Workflow

1

Prepare Images

Place your images in the inputs folder:
2

Run Inference

Process with the appropriate model:
3

Check Results

Enhanced images are saved in the results folder with the _out suffix.

Advanced Examples

Tips for Best Results

CUDA Out of MemoryFor high-resolution images, use the --tile option:
Smaller tile sizes use less memory but may introduce slight artifacts at tile boundaries.
Denoise Strength GuidelinesWhen using realesr-general-x4v3:
  • 0.0-0.3: Preserve original texture and noise (good for film grain)
  • 0.4-0.6: Balanced (default is 0.5)
  • 0.7-1.0: Strong noise reduction (good for compressed images)
Arbitrary Output ScaleUse --outscale for any target size:
The model upscales to its native scale (e.g., 4x), then resizes to your target using LANCZOS4.

Batch Processing

Process entire folders efficiently:
The script automatically processes all supported images in the input folder.

Special Image Types

RGBA Images (With Transparency)

Real-ESRGAN automatically handles alpha channels:
  • Alpha channels are upsampled using the method specified by --alpha_upsampler (default: realesrgan)
  • Output is always saved as PNG to preserve transparency

Grayscale Images

Grayscale images are supported natively:

16-bit Images

High bit-depth images are automatically handled:

Performance Optimization

Multi-GPU Usage

Specify GPU device:

Memory Management

Next Steps

Face Enhancement

Enhance faces in your photos with GFPGAN integration

Anime Images

Learn about specialized models for anime content