匿名用户2024年07月31日
84阅读

技术信息

开源地址
https://modelscope.cn/models/AI-ModelScope/Real-ESRGAN

作品详情

Real-ESRGAN

PyTorch implemetatio of a Real-ESRGAN model traied o custom dataset. This model shows better results o faces compared to the origial versio. It is also easier to itegrate this model ito your projects.

Real-ESRGAN is a upgraded ESRGAN traied with pure sythetic data is capable of ehacig details while removig aoyig artifacts for commo real-world images.

Usage

Code for usig model you ca obtai i our repo.

import torch
from PIL import Image
import umpy as p
from RealESRGAN import RealESRGAN

device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

model = RealESRGAN(device, scale=4)
model.load_weights('weights/RealESRGAN_x4.pth', dowload=True)

path_to_image = 'iputs/lr_image.pg'
image = Image.ope(path_to_image).covert('RGB')

sr_image = model.predict(image)

sr_image.save('results/sr_image.pg')

功能介绍

Real-ESRGAN PyTorch implementation of a Real-ESRGAN model trained on custom dataset. This model show

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论