← all repositories
xinntao/Real-ESRGAN

Training on fake data to fix real photos (and anime)

Real-ESRGAN turns the ESRGAN research model into a practical tool for upscaling and restoring real-world images and videos using only synthetic training data.

Real-ESRGAN
Velocity · 7d
+12
★ / day
Trend
steady
star history

What it does

Real-ESRGAN is a practical image and video restoration toolkit that extends the ESRGAN architecture. It ships pre-trained PyTorch models and portable ncnn/Vulkan executables for Windows, Linux, and macOS that run without a CUDA or PyTorch environment. The project covers general photo upscaling, specialized anime image and video models, and optional face enhancement via GFPGAN integration.

The interesting bit

The whole system is trained on pure synthetic data, yet targets real-world blind super-resolution. The authors also provide portable binaries—an unusual courtesy in the research-to-tool pipeline—though they achieve this by tiling images, which can introduce block inconsistency.

Key highlights

  • Portable executables for Windows, Linux, and macOS via ncnn/Vulkan; no CUDA or PyTorch installation required
  • Specialized models for anime images (RealESRGAN_x4plus_anime_6B) and anime videos (AnimeVideo-v3)
  • Optional GFPGAN integration for face enhancement alongside general upscaling
  • Inference supports tiled processing, alpha channels, grayscale, and 16-bit images
  • Training and finetuning code released for custom datasets

Caveats

  • The ncnn portable executable processes images in tiles, which may cause block inconsistency and slightly different results versus the PyTorch implementation
  • Portable executables lack some Python script features, such as arbitrary output scaling via outscale

Verdict

Worth exploring if you need offline, practical upscaling for photos or anime with both research flexibility and ready-to-run binaries. Look elsewhere if you want a fully managed service; the core deliverable is models and code, not a hosted API.

Frequently asked

What is xinntao/Real-ESRGAN?
Real-ESRGAN turns the ESRGAN research model into a practical tool for upscaling and restoring real-world images and videos using only synthetic training data.
Is Real-ESRGAN open source?
Yes — xinntao/Real-ESRGAN is open source, released under the BSD-3-Clause license.
What language is Real-ESRGAN written in?
xinntao/Real-ESRGAN is primarily written in Python.
How popular is Real-ESRGAN?
xinntao/Real-ESRGAN has 36.2k stars on GitHub and is currently holding steady.
Where can I find Real-ESRGAN?
xinntao/Real-ESRGAN is on GitHub at https://github.com/xinntao/Real-ESRGAN.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.