Real-ESRGAN
Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration. We extend the powerful ESRGAN to a practical restoration application, which is trained with pure synthetic data.
Key Features
Multiple Models
Specialized models for general images, anime illustrations, and anime videos
Easy Installation
Simple pip installation with Python >= 3.7 and PyTorch >= 1.7
Quick Start
Get started with upscaling in just a few lines of code
Face Enhancement
Integrated GFPGAN support for enhancing faces in images
Available Models
Real-ESRGAN provides several pre-trained models optimized for different use cases:RealESRGAN_x4plus
RealESRGAN_x4plus
The default model for general image super-resolution with 4x upscaling. Best for photographs and natural images.
RealESRGAN_x4plus_anime_6B
RealESRGAN_x4plus_anime_6B
Optimized for anime illustrations with a smaller model size (6 blocks). Provides excellent results for anime-style artwork.
realesr-animevideov3
realesr-animevideov3
Specialized model for anime videos with a compact architecture. Ideal for processing anime video frames.
realesr-general-x4v3
realesr-general-x4v3
A tiny model for general scenes with denoising support. Use the
-dn option to balance noise and avoid over-smooth results.RealESRGAN_x2plus
RealESRGAN_x2plus
2x upscaling model for cases where 4x is too aggressive.
RealESRNet_x4plus
RealESRNet_x4plus
Alternative 4x model with different training characteristics.
Research Paper
Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic DataAuthors: Xintao Wang, Liangbin Xie, Chao Dong, Ying ShanAffiliation: Tencent ARC Lab; Shenzhen Institutes of Advanced Technology, Chinese Academy of SciencesPublication: International Conference on Computer Vision Workshops (ICCVW), 2021
Try It Online
Before installing locally, you can try Real-ESRGAN online:- Replicate Demo - Web-based interface
- Google Colab (General) - Interactive notebook for images
- Google Colab (Anime Videos) - Interactive notebook for anime videos
Next Steps
Installation
Install Real-ESRGAN and its dependencies
Quick Start
Run your first image upscaling example