https://github.com/codemaster947/real-esrgan

https://github.com/codemaster947/real-esrgan

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: codemaster947
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: main
  • Size: 30.1 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 12 months ago · Last pushed 12 months ago
Metadata Files
Readme License

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 Open In Colab

Installation

bash pip install git+https://github.com/sberbank-ai/Real-ESRGAN.git

Usage


Basic usage:

```python 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, 'realesr-general-x4v3') model.load_weights(download=True)

pathtoimage = 'inputs/image.png' image = Image.open(pathtoimage)

sr_image = model.predict(image)

sr_image.save('results/image.png') ```

Examples


Low quality image:

Real-ESRGAN result:


Low quality image:

Real-ESRGAN result:


Low quality image:

Real-ESRGAN result:

Low quality image:

Real-ESRGAN result:


Low quality image:

Real-ESRGAN result:


Low quality image:

Real-ESRGAN result:

Owner

  • Login: codemaster947
  • Kind: user

GitHub Events

Total
  • Push event: 2
  • Pull request event: 1
  • Create event: 1
Last Year
  • Push event: 2
  • Pull request event: 1
  • Create event: 1