Skip to content

This project leverages Real-ESRGAN, a powerful AI-based image upscaling model, to enhance image quality effortlessly. The app is built using Streamlit for an intuitive user interface, allowing users to upload low-resolution images, select the desired enhancement scale, and download the enhanced version.

Notifications You must be signed in to change notification settings

saadtariq10/Image-Enhancer-Using-Real-ESRGAN

Repository files navigation

Image Enhancer ✨

Enhance your images effortlessly using the advanced Real-ESRGAN model. This simple web app allows you to upload an image, choose an enhancement scale, and process it using state-of-the-art deep learning models for image upscaling.

Image Enhancer Demo

Features

  • Image Upload: Upload your image in JPG, PNG, or JPEG format.
  • Enhancement Settings: Choose from different enhancement scales (2x, 3x, 4x).
  • Real-ESRGAN Processing: Enhance your image using the Real-ESRGAN model for improved resolution.
  • Download Enhanced Image: After the image is enhanced, download the improved version with just a click.

Requirements

To run this app locally, make sure you have the following libraries installed:

  • Python 3.x
  • Streamlit
  • Pillow
  • torch
  • realesrgan

You can install the necessary Python libraries with:

pip install streamlit Pillow torch realesrgan

How to Use

  1. Clone or download this repository.
  2. Install the required dependencies as mentioned above.
  3. Run the Streamlit app by navigating to the directory and executing:
streamlit run app.py
  1. Once the app opens in your browser, simply upload an image.
  2. Select the enhancement scale (2x, 3x, or 4x).
  3. Click on "Enhance Image" to start the image enhancement process.
  4. After processing, download your enhanced image!

Model Information

The app uses the Real-ESRGAN model for image enhancement. Make sure the weights for the Real-ESRGAN model are properly set (RealESRGAN_x{scale}plus.pth).

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

About

This project leverages Real-ESRGAN, a powerful AI-based image upscaling model, to enhance image quality effortlessly. The app is built using Streamlit for an intuitive user interface, allowing users to upload low-resolution images, select the desired enhancement scale, and download the enhanced version.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages