git404hub

what is real-esrgan fr?

xinntao/real-esrgan — explained in plain English

Analysis updated 2026-06-20

35,324PythonAudience · generalComplexity · 3/5Setup · moderate

tl;dr

Real-ESRGAN is a Python deep learning tool that upscales and restores degraded images and videos, old photos, compressed frames, and anime art, producing sharper, higher-resolution outputs by training on realistic degradation patterns rather than clean downsampling.

vibe map

mindmap
  root((Real-ESRGAN))
    What it does
      Image upscaling
      Artifact removal
      Video restoration
    Specialized Models
      General photos
      Anime images
      Face enhancement
    Supported Inputs
      Old photographs
      Scanned artwork
      Video frames
    Tech stack
      Python
      PyTorch
      NCNN-Vulkan portable

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Upscale and restore old or blurry family photos to 4× resolution with realistic detail and reduced compression artifacts.

VIBE 2

Enhance anime images or video frames using the specialized anime model for print or high-DPI display.

VIBE 3

Batch-process scanned documents or artwork to remove JPEG artifacts and increase resolution.

VIBE 4

Improve low-resolution video quality by processing frames through Real-ESRGAN before re-encoding.

what's the stack?

PythonPyTorchNCNN-VulkanGFPGAN

how it stacks up fr

xinntao/real-esrganmouredev/hello-pythonrvc-project/retrieval-based-voice-conversion-webui
Stars35,32435,50435,513
LanguagePythonPythonPython
Setup difficultymoderatemoderatehard
Complexity3/52/54/5
Audiencegeneralvibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires Python with PyTorch, a GPU dramatically speeds up processing but CPU mode is available via portable NCNN-Vulkan executables.

in plain english

Real-ESRGAN is a Python tool for upscaling and restoring low-quality images and videos using deep learning. Upscaling means taking a small or degraded image and producing a larger, sharper, more detailed version, a process formally called super-resolution. The "ESRGAN" part stands for Enhanced Super-Resolution Generative Adversarial Network, a type of neural network designed specifically for this task. The "Real" prefix indicates that this version is specifically trained to handle the kinds of degradations that appear in real-world photos and scans, not just simple artificial downsampling. The problem Real-ESRGAN solves is that real-world images suffer from complex combinations of degradation: blurriness, JPEG compression artifacts, noise, and low resolution all at once. Earlier super-resolution tools were trained only on cleanly downsampled images and performed poorly on genuinely degraded inputs. Real-ESRGAN addresses this by training entirely on synthetic data that mimics realistic degradation patterns, producing a model that generalizes well to actual old photos, scanned documents, and compressed video frames. Key features include a general-purpose model for photographs, a specialized model optimized for anime images and video (using a much smaller, faster neural network), optional face enhancement by integrating a companion face restoration model called GFPGAN, and adjustable denoising strength to prevent over-smoothing. It supports processing images with alpha channels (transparency), gray images, and 16-bit images. You would use Real-ESRGAN when enhancing old or low-resolution photographs, restoring scanned artwork or documents, upscaling anime images for print, or improving video quality. It can be run via command line, Python API, or portable executables that require no Python installation. The tech stack is Python using PyTorch for neural network inference. Portable GPU-accelerated executables (via NCNN-Vulkan) are also available for Windows, Linux, and macOS.

prompts (copy fr)

prompt 1
Run Real-ESRGAN on a folder of old JPEG photos to upscale them 4× and reduce compression artifacts. Give me the command-line invocation with the general-purpose RealESRGAN_x4plus model.
prompt 2
I have a batch of anime screenshots at 720p I want to upscale to 4K using Real-ESRGAN's anime model. Show me the Python API code to process them with the realesr-animevideov3 model.
prompt 3
I want to enhance faces in old degraded photographs using Real-ESRGAN with the built-in GFPGAN face enhancement. Provide the command-line flag and explain what face enhancement adds on top of normal upscaling.
prompt 4
How do I use Real-ESRGAN to upscale a video from 480p to 1080p? Walk me through extracting frames with ffmpeg, processing them with Real-ESRGAN, and reassembling the video.

Frequently asked questions

what is real-esrgan fr?

Real-ESRGAN is a Python deep learning tool that upscales and restores degraded images and videos, old photos, compressed frames, and anime art, producing sharper, higher-resolution outputs by training on realistic degradation patterns rather than clean downsampling.

What language is real-esrgan written in?

Mainly Python. The stack also includes Python, PyTorch, NCNN-Vulkan.

How hard is real-esrgan to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is real-esrgan for?

Mainly general.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.