CSR-GAN(超分辨率重建)

img
个人网站:https://tianfeng.space/934.html

一、前言

CSRGAN(Compressed Sensing with Regularization Generative Adversarial Network)是一种基于生成对抗网络(GAN)和压缩感知(CS)的图像超分辨率(SR)算法。它通过学习图像的稀疏表示来实现超分辨率重建,并使用生成对抗网络来提高重建图像的视觉质量。相较于其他传统的图像超分辨率算法,CSRGAN 在保持图像细节和纹理的同时,还能够有效地减少重建图像中的伪影和噪声。

二、安装使用

1.环境搭建

anaconda和cuda和pytorch环境以前写过详细教程:安装

img

2.源码下载

地址:https://github.com/xinntao/Real-ESRGAN

img

git clone或者zip下载

3.依赖安装

cd cd Real-ESRGAN
python -m pip install -r requirements.txt  已经有torch环境把里面torch,torchvision删掉

img

4.运行,结果在result

python inference_realesrgan.py -n RealESRGAN_x4plus -i inputs

img

img

img

扫描二维码关注公众号,回复: 15161573 查看本文章

img

猜你喜欢

转载自blog.csdn.net/weixin_62403633/article/details/130672091