ai-forever/Real-ESRGAN
ai-forever/Real-ESRGAN has 656 GitHub stars and 224 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-21 22:33 UTC. Last push 2024-04-15.
計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
PyTorch implementation of Real-ESRGAN model
機械学習README.md
オリジナルReal-ESRGAN
PyTorch implementation of a Real-ESRGAN model trained on custom dataset. This model shows better results on faces compared to the original version. It is also easier to integrate this model into your projects.
This is not an official implementation. We partially use code from the original repository
Real-ESRGAN is an upgraded ESRGAN trained with pure synthetic data is capable of enhancing details while removing annoying artifacts for common real-world images.
You can try it in google colab
- Paper (Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data)
- Original implementation
- Huggingface 🤗
Installation
pip install git+https://github.com/sberbank-ai/Real-ESRGAN.git
Usage
Basic usage:
import torch
from PIL import Image
import numpy as np
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', download=True)
path_to_image = 'inputs/lr_image.png'
image = Image.open(path_to_image).convert('RGB')
sr_image = model.predict(image)
sr_image.save('results/sr_image.png')
Examples
Low quality image:

Real-ESRGAN result:

Low quality image:

Real-ESRGAN result:

Low quality image:

Real-ESRGAN result:

関連プロジェクトを探す
読み込み中…