Skip to content

Streamlit App to Upscale images and compared visualization - Repo of the code from the Medium article

Notifications You must be signed in to change notification settings

fabiomatricardi/ImageUpscaler

Repository files navigation

ImageUpscaler

Streamlit App to Upscale images and compared visualization - Repo of the code from the Medium article

This app leverage the amazing Repository Real-ESRGAN

you can find it also on HuggingFace - https://huggingface.co/ai-forever/Real-ESRGAN

I tried to use also x2_Upscaler and x8_Upscaler but I always get an error from pytorch

  1. you upload a picture
  2. you generate the Upscaled image
  3. you compare the results

NOTE
The bigger the original image, the longer the Upscale time

Requirements

create a virtual environment

python -m venv venv
venv\Scripts\activate

Install the PIP dependencies

pip install git+https://github.com/sberbank-ai/Real-ESRGAN.git
pip install streamlit
pip install streamlit-image-comparison

Download the pytorch weigths

from https://huggingface.co/ai-forever/Real-ESRGAN

Download RealESRGAN_x4.pth into weights subfolder

Run the stapp

from the terminal, with the venv still activated, run

python -m streamlit run .\stUpscaler4x.py

Note: original Image of Remo Williams from here

Real life example

Here a low resolution image i used for my Medium article

Original url: https://mamvas.blogspot.com/2013/06/fruto-de-la-crisis-los-bancos-italianos.html


Other examples

About

Streamlit App to Upscale images and compared visualization - Repo of the code from the Medium article

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages