This repository show the code to upscale pictures by 4x using ESRGAN.
Given a low resolution picture, the goal is to upscale by 4x and compare with the Bicubic Algorithm.
As you can see, the results are very good. Try yourself!
Endpoint | Description |
---|---|
http://localhost:8000/ | Front-end to perform style transfer. |
- Clone this repository
git clone https://github.com/renatoviolin/super-resolution-image-esrgan.git
cd super-resolution-image-esrgan
- Download the pre-trained model
wget "https://www.dropbox.com/s/58x64ex9m047gdy/model.pth?dl=0" -O esrgan/model.pth
- Install dependencies
pip install -r requirements.txt
- Start web-application
cd web-app
uvicorn app:app --host 0.0.0.0 --port 8000
You can running on colab using ngrok.
ESRGAN (Enhanced SRGAN): https://github.com/xinntao/ESRGAN
@InProceedings{wang2018esrgan,
author = {Wang, Xintao and Yu, Ke and Wu, Shixiang and Gu, Jinjin and Liu, Yihao and Dong, Chao and Qiao, Yu and Loy, Chen Change},
title = {ESRGAN: Enhanced super-resolution generative adversarial networks},
booktitle = {The European Conference on Computer Vision Workshops (ECCVW)},
month = {September},
year = {2018}
}