Views
No views yet
RealESRGAN_x4plus.pth pre-trained generator weights from the xinntao/Real-ESRGAN project. The file is a 1:1 mirror of the asset originally released by Xintao Wang on July 22, 2021 as part of Real-ESRGAN v0.1.0. Per the v0.1.0 release notes, "This release is mainly for storing pre-trained models and executable files."inference_realesrgan.py in the upstream repository.| Field | Value |
|---|---|
| Original release | v0.1.0, 22 Jul 2021 |
| Authors | Xintao Wang, Liangbin Xie, Chao Dong, Ying Shan — Tencent ARC Lab; Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences (paper) |
| Architecture | RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4) (source) |
| Upscale factor | 4× |
| Weight file | RealESRGAN_x4plus.pth (~67 MB) |
| Paper | Wang et al., 2021 — Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data (ICCVW 2021) |
| License | BSD 3-Clause, Copyright (c) 2021 Xintao Wang |
| Source repository | github.com/xinntao/Real-ESRGAN |
| Original asset URL | github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth |
x4plus is a general-purpose super-resolution model — it works well across a broad range of natural images and is the default model recommended by the upstream Real-ESRGAN README for everyday use. For anime / illustration content, the smaller amd/realesrgan-x4plus-anime-6b checkpoint (6-block variant, ~18 MB) is a better fit.1# 1. Clone Real-ESRGAN
2git clone https://github.com/xinntao/Real-ESRGAN.git
3cd Real-ESRGAN
4
5# 2. Install dependencies
6pip install basicsr facexlib gfpgan
7pip install -r requirements.txt
8python setup.py develop
9
10# 3. Download the weights from this Hugging Face repo
11huggingface-cli download amd/realesrgan-x4plus RealESRGAN_x4plus.pth --local-dir weights
12
13# 4. Run inference
14python inference_realesrgan.py -n RealESRGAN_x4plus -i inputs --face_enhance--outscale, --tile, --fp32, etc.). A portable NCNN executable variant is also available via the realesrgan-x4plus model name in Real-ESRGAN-ncnn-vulkan.amd/realesrgan-x4plus-anime-6b for anime/illustration imagery rather than this checkpoint.1@InProceedings{wang2021realesrgan,
2 author = {Xintao Wang and Liangbin Xie and Chao Dong and Ying Shan},
3 title = {Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data},
4 booktitle = {International Conference on Computer Vision Workshops (ICCVW)},
5 date = {2021}
6}