# Real-ESRGAN

**Real-ESRGAN**（真实增强超分辨率生成对抗网络）是一个开源的图像与视频修复模型，它将 ESRGAN 扩展到真实世界照片，完全在合成退化数据上训练。该模型由腾讯 ARC 实验室与中国科学院深圳先进技术研究院的王鑫涛（Xintao Wang）、谢良斌（Liangbin Xie）、董超（Chao Dong）和单瀛（Ying Shan）共同创建，于 2021 年 7 月在 ICCV 2021 研讨会上发表。<sup>[1](https://arxiv.org/abs/2107.10833)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content/ICCV2021W/AIM/html/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 完整标题 | Real-ESRGAN：用纯合成数据训练真实世界盲超分辨率模型；ICCV 2021 研讨会，第 1905–1914 页<sup>[2](https://openaccess.thecvf.com/content/ICCV2021W/AIM/html/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.html)</sup> |
| 核心思想 | 高阶退化建模模拟复杂的真实世界退化（模糊、下采样、噪声、压缩），使模型无需成对的真实世界训练数据<sup>[1](https://arxiv.org/abs/2107.10833)</sup> |
| 判别器 | 带谱归一化的 U-Net 判别器，以增强判别器能力并稳定训练动态<sup>[2](https://openaccess.thecvf.com/content/ICCV2021W/AIM/html/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.html)</sup> |
| 训练数据 | DIV2K（800 张 2K 图像）、Flickr2K（2,650 张 2K 图像）和 OST（10,324 张户外场景图像），经合成退化处理；从 ESRGAN 微调，训练 400K 次迭代，学习率 1×10<sup>−4</sup><sup> • </sup><sup>[3](https://huggingface.co/amd/realesrgan-512x512-tiles-amdnpu/blob/b8fe7ea0ed448da08da412a1e492e60a67d4bb04/README.md)</sup> |
| 损失函数 | L1 损失、感知损失和 GAN 损失，权重为 {1, 1, 0.1}<sup>[3](https://huggingface.co/amd/realesrgan-512x512-tiles-amdnpu/blob/b8fe7ea0ed448da08da412a1e492e60a67d4bb04/README.md)</sup> |
| 代码仓库 | github.com/xinntao/Real-ESRGAN，37.1k 星标，4.5k 复刻，BSD-3-Clause 许可证<sup>[4](https://github.com/xinntao/real-esrgan)</sup> |
| 主要模型 | RealESRGAN_x4plus（通用照片）、RealESRGAN_x4plus_anime_6B（动漫图像）、realesr-general-x4v3（可调降噪强度的微型通用模型）以及动漫视频模型<sup>[4](https://github.com/xinntao/real-esrgan)</sup> |

## 所解决的问题

盲超分辨率是指恢复退化情况未知且复杂的低分辨率图像的任务。早期的盲修复方法远不能处理一般真实世界的退化图像，因为真实照片带来的相机模糊、传感器噪声、JPEG 压缩和缩放伪影的组合不可预测，而合成训练流程未能忠实复现这些组合。<sup>[1](https://arxiv.org/abs/2107.10833)</sup>

Real-ESRGAN 的解决方案是让合成退化流程本身更困难。高阶退化建模过程反复施加退化操作，使训练输入模拟真实图像的复合失真，而非单一的理想化模糊或压缩步骤。<sup>[1](https://arxiv.org/abs/2107.10833)</sup> 该流程还用 sinc 滤波器模拟振铃和过冲伪影（例如字母周围的白色边缘），让模型学会去除它们；否则，直接对已包含过冲的图像进行上采样会将其放大。<sup>[5](https://openaccess.thecvf.com/content/ICCV2021W/AIM/papers/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.pdf)</sup>

## 训练

该模型从 ESRGAN（一种早期的增强超分辨率 GAN）微调而来，以加快收敛，训练超过 400,000 次迭代，学习率为 1×10<sup>−4</sup>。<sup>[3](https://huggingface.co/amd/realesrgan-512x512-tiles-amdnpu/blob/b8fe7ea0ed448da08da412a1e492e60a67d4bb04/README.md)</sup> 训练结合三个目标：L1 像素损失、感知损失和 GAN 对抗损失，权重分别为 {1, 1, 0.1}。<sup>[3](https://huggingface.co/amd/realesrgan-512x512-tiles-amdnpu/blob/b8fe7ea0ed448da08da412a1e492e60a67d4bb04/README.md)</sup>

两项设计选择针对训练稳定性。生成器采用基于 RRDB 的架构，判别器是带谱归一化的 U-Net，这增强了判别器能力并稳定了对抗动态。<sup>[2](https://openaccess.thecvf.com/content/ICCV2021W/AIM/html/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.html)</sup><sup> • </sup><sup>[5](https://openaccess.thecvf.com/content/ICCV2021W/AIM/papers/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.pdf)</sup> 一个名为 **Real-ESRGAN+** 的变体在训练时锐化真值图像，作者发现这在锐度与抑制过冲伪影之间取得了更好的平衡。<sup>[5](https://openaccess.thecvf.com/content/ICCV2021W/AIM/papers/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.pdf)</sup>

在论文中，Real-ESRGAN 在 RealSR、DRealSR、OST300、DPED、ADE20K 验证集和互联网图像上与 ESRGAN、DAN、CDC、RealSR 和 BSRGAN 进行了比较，在去除伪影和恢复纹理细节两方面均优于先前方法，产生了更逼真的砖块、山体和树木纹理，而其他方法要么未能去除退化，要么添加了不自然的纹理。<sup>[5](https://openaccess.thecvf.com/content/ICCV2021W/AIM/papers/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.pdf)</sup>

## 模型与软件

官方仓库提供预训练权重和三种推理方式：在线演示、基于 NCNN 与 Vulkan 构建的便携式可执行文件（适用于 Windows、Linux 和 macOS 上的 Intel、AMD 和 Nvidia GPU，无需安装 CUDA 或 PyTorch），以及 Python 脚本。<sup>[4](https://github.com/xinntao/real-esrgan)</sup> Python 脚本支持分块处理、带 alpha 通道的图像、灰度和 16 位图像，并通过 `outscale` 参数支持任意输出尺寸，该参数在模型 4 倍输出后进一步执行 LANCZOS4 缩放。<sup>[4](https://github.com/xinntao/real-esrgan)</sup> `--face_enhance` 选项集成了 GFPGAN，这是同一作者开发的配套人脸修复模型。<sup>[4](https://github.com/xinntao/real-esrgan)</sup>

发布历史记录了项目从 2021 年 7 月的 v0.1.0 到 v0.3.0 的成长。版本 0.2.2.4 添加了动漫图像模型 RealESRGAN_x4plus_anime_6B，针对动漫图像优化，模型尺寸小得多。版本 0.2.3.0 添加了小型动漫视频模型（RealESRGANv2-animevideo-xsx2 和 xsx4）。版本 0.2.5.0 更新了 AnimeVideo-v3 模型，自然度更好、伪影更少、色彩更忠实、推理更快，并添加了微型 realesr-general-x4v3 模型用于通用场景，带有 `-dn` 降噪强度选项，范围从 0（保留噪声）到 1（强降噪）。<sup>[6](https://github.com/xinntao/Real-ESRGAN/releases)</sup>

## 应用与比较评估

Real-ESRGAN 已成为超分辨率研究中的标准基线，其应用领域远超最初范围。研究已用它对 [Sentinel-2](https://www.edgepedia.org/zh/sentinel-2) 卫星影像进行超分辨率处理，以监测道路质量，并用 PSNR 和 SSIM 指标与双三次插值进行比较。<sup>[7](https://www.nature.com/articles/s41598-026-47749-3)</sup> 它已被应用于医学图像超分辨率，一篇 IEEE 论文报告其视觉结果优于其他技术，<sup>[8](https://ieeexplore.ieee.org/document/10752667/)</sup> 还应用于显微镜和卫星遥感工作流。<sup>[9](https://www.sciencedirect.com/science/article/pii/S1877050926019393)</sup>

比较结果因指标和领域而异。一项 2023 年研究在退化真实世界图像上对 ESRGAN、Real-ESRGAN 和 EDSR 进行基准测试，发现 EDSR-BASE 模型在 PSNR、SSIM 和 Tesseract OCR 质量上优于基于 GAN 的候选模型，且计算开销最低。<sup>[10](https://arxiv.org/abs/2307.09456)</sup> 一项 2025 年 IEEE INDISCON 评估涵盖自然、医学、艺术作品、文本和水下图像，发现 ESRGAN 在大多数类别中在结构保持和锐度方面表现出色，而 Real-ESRGAN 虽然在精细纹理细节上略显保守，但在噪声和复杂环境中表现出强大性能。<sup>[11](https://ieeexplore.ieee.org/abstract/document/11251898)</sup> AIM 2025 高效感知超分辨率基准将 Real-ESRGAN 视为参考感知基线，挑战参与者在参数量不超过 500 万、对 960×540 输入的计算量不超过 2,000 GFLOPs 的约束下匹配或超越其感知结果；表现最佳的方法在所有基准数据集上均超越了 Real-ESRGAN。<sup>[12](https://arxiv.org/abs/2510.12765)</sup>

具体到动漫视频，后续工作如 AnimeSR（NeurIPS 2022）基于以下观察：真实世界动画超分辨率需要学习到的退化算子，而非 Real-ESRGAN 等方法使用的固定基本算子，并报告其性能优于先前最先进方法。<sup>[13](https://arxiv.org/abs/2206.07038)</sup> 从业者对复古动漫放大的比较将 Real-ESRGAN 的输出描述为比 waifu2x 更平滑、更锐利、更具现代感，而 waifu2x 保留了更多媒体的原始特征。<sup>[14](https://josephcarragher.us/upscaling-retro-anime-using-nvidia-gpus/)</sup>

## 实际限制

该模型无法恢复源中不存在的信息。极度压缩、严重模糊或细节贫乏的输入给模型提供的信息可靠性较低，划痕、污渍或模糊可能在清晰度上有所改善但未被完全解决，因为某些修复问题需要人工修饰。<sup>[15](https://realesrgan.org/blog/real-esrgan-product)</sup> 当输入有噪声或压缩时，高缩放因子会放大伪影，AI 放大可能扭曲小文字和标志，因此指南建议对肖像和写实素材采用保守缩放（2 倍到 4 倍），更高缩放主要用于干净的线稿如动漫和插画。<sup>[15](https://realesrgan.org/blog/real-esrgan-product)</sup> 对于视频，每一帧都必须看起来良好且帧间视觉一致，因此应在导出前动态审查完整片段，检查轮廓周围的闪烁。<sup>[16](https://realesrgan.org/blog/real-esrgan-video-upscale)</sup>

## References

1. [Xintao Wang, Liangbin Xie, Chao Dong, Ying Shan (2021). Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data. arXiv:2107.10833.](https://arxiv.org/abs/2107.10833)
2. [Wang et al., ICCV 2021 Workshops (AIM), pp. 1905–1914, CVF Open Access.](https://openaccess.thecvf.com/content/ICCV2021W/AIM/html/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.html)
3. [AMD realesrgan-512x512-tiles-amdnpu model card, Hugging Face.](https://huggingface.co/amd/realesrgan-512x512-tiles-amdnpu/blob/b8fe7ea0ed448da08da412a1e492e60a67d4bb04/README.md)
4. [xinntao/Real-ESRGAN, GitHub repository.](https://github.com/xinntao/real-esrgan)
5. [Wang et al., Real-ESRGAN paper PDF, CVF Open Access.](https://openaccess.thecvf.com/content/ICCV2021W/AIM/papers/Wang_Real-ESRGAN_Training_Real-World_Blind_Super-Resolution_With_Pure_Synthetic_Data_ICCVW_2021_paper.pdf)
6. [Releases · xinntao/Real-ESRGAN, GitHub.](https://github.com/xinntao/Real-ESRGAN/releases)
7. [Evaluating the effectiveness of satellite image super-resolution for road quality monitoring, Scientific Reports.](https://www.nature.com/articles/s41598-026-47749-3)
8. [Super-Resolution of Medical Images Using Real ESRGAN, IEEE Access.](https://ieeexplore.ieee.org/document/10752667/)
9. [Super-resolving satellite imagery through in-depth analysis of GAN models, Procedia Computer Science.](https://www.sciencedirect.com/science/article/pii/S1877050926019393)
10. [A comparative analysis of SRGAN models, arXiv:2307.09456.](https://arxiv.org/abs/2307.09456)
11. [Evaluation of GAN-Based Super-Resolution Models Across Diverse Image Domains, IEEE INDISCON 2025.](https://ieeexplore.ieee.org/abstract/document/11251898)
12. [Efficient Perceptual Image Super Resolution: AIM 2025 Study and Benchmark, arXiv:2510.12765.](https://arxiv.org/abs/2510.12765)
13. [AnimeSR: Learning Real-World Super-Resolution Models for Animation Videos, arXiv:2206.07038.](https://arxiv.org/abs/2206.07038)
14. [Joseph Carragher, Upscaling Retro Anime Using Nvidia GPUs.](https://josephcarragher.us/upscaling-retro-anime-using-nvidia-gpus/)
15. [Real-ESRGAN Product Guide: Clean Upscaling from 2x to 10x, realesrgan.org.](https://realesrgan.org/blog/real-esrgan-product)
16. [Real ESRGAN Video Upscale: Sharper Frames Online, realesrgan.org.](https://realesrgan.org/blog/real-esrgan-video-upscale)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Neural network architectures › Generative adversarial and variational architectures

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/real-esrgan

English original: https://www.edgepedia.org/real-esrgan
