Skip to main content

Overview

Real-ESRGAN provides portable executable files powered by NCNN and Vulkan. These executables work on Intel/AMD/Nvidia GPUs without requiring Python, PyTorch, or CUDA installation.
The NCNN executable is ideal for users who want a simple, portable solution without setting up a Python environment.

Download Executables

Windows

Download for Windows

Linux

Download for Ubuntu/Linux

MacOS

Download for MacOS

Quick Start

1

Download and Extract

Download the appropriate executable for your platform and extract the archive.
2

Run Basic Command

3

Check Output

The enhanced image is saved as output.png with 4x upscaling by default.

Command-Line Reference

Basic Syntax

Arguments

flag
Show help message
string
required
Input image path (jpg/png/webp) or directoryExamples:
  • Single file: -i input.jpg
  • Directory: -i input_folder
string
required
Output image path (jpg/png/webp) or directoryExamples:
  • Single file: -o output.png
  • Directory: -o output_folder
integer
default:"4"
Upscale ratio: 2, 3, or 4Example: -s 2 for 2x upscaling
integer
default:"0"
Tile size (>=32 or 0=auto)
  • 0: Auto tile size
  • >=32: Manual tile size
  • Format for multi-GPU: 0,0,0
Use tiling for large images or limited VRAM.
string
default:"models"
Folder path to pre-trained models
string
default:"realesr-animevideov3"
Model name to use. Options:
  • realesr-animevideov3 (default)
  • realesrgan-x4plus
  • realesrgan-x4plus-anime
  • realesrnet-x4plus
string
default:"auto"
GPU device to use
  • auto: Automatic selection
  • Single GPU: -g 0, -g 1, etc.
  • Multi-GPU: -g 0,1,2
string
default:"1:2:2"
Thread count for load/proc/save
  • Default: 1:2:2
  • Multi-GPU: 1:2,2,2:2
flag
Enable TTA (Test-Time Augmentation) modeImproves quality but increases processing time.
string
default:"ext/png"
Output image format: jpg, png, or webp
  • Default: same as input or PNG
flag
Verbose output (show detailed information)

Available Models

Default model - Optimized for anime videos and images
  • Size: XS (~8MB)
  • Best for: Anime images and video frames
  • Speed: Fast

Usage Examples

General Images

Anime Images

Video Frames Processing

1

Extract Frames

2

Process Frames

3

Merge Back to Video

Advanced Options

Performance Tips

Tile Size SelectionChoose tile size based on your GPU VRAM:
  • 8GB+ VRAM: -t 0 (auto) or no tiling
  • 4-8GB VRAM: -t 512 or -t 400
  • Less than 4GB VRAM: -t 256 or -t 200
Smaller tiles use less memory but may show slight artifacts at tile boundaries.
Multi-GPU UsageFor systems with multiple GPUs:
This distributes processing across GPUs 0, 1, and 2.
TTA ModeEnable TTA for potentially better quality (slower):
TTA applies transformations, processes, then averages results. Best for critical images.

NCNN vs Python Implementation

NCNN Advantages:✓ No Python/PyTorch installation required ✓ Portable executable - works out of the box ✓ Works with Intel/AMD GPUs via Vulkan ✓ Smaller download size ✓ No CUDA requirement ✓ Easier for non-technical users

Troubleshooting

Install Vulkan drivers for your GPU:Windows:
  • Nvidia: Install latest GeForce drivers
  • AMD: Install latest Radeon drivers
  • Intel: Install latest graphics drivers
Linux:
MacOS:
  • macOS 10.15+ includes Vulkan support via MoltenVK
Reduce tile size:
Or use an even smaller tile size:
This is due to tiling. To minimize:
  1. Use larger tile size (if memory allows):
  2. Use auto tile size:
  3. If possible, disable tiling by using the Python implementation
Ensure models are in the correct directory:
  1. Check the models folder exists in the same directory as the executable
  2. Verify model files are present
  3. Specify custom model path:
If using CPU instead of GPU:
  1. Install proper GPU drivers
  2. Verify Vulkan is working: vulkaninfo (Linux)
  3. Specify GPU explicitly:

Additional Resources

Real-ESRGAN-ncnn-vulkan

Official NCNN implementation repository

Python Inference

Full Python implementation with all features

Anime Videos

Process anime videos using NCNN

When to Use NCNN vs Python

✓ You don’t have Python installed ✓ You want a simple, portable solution ✓ You have Intel or AMD GPU (no CUDA) ✓ You need quick setup ✓ You’re processing standard images ✓ You don’t need face enhancement