Skip to content

ucalyptus/esrgan-cli

Repository files navigation

PyPI version

The ESRGAN CLI package is a command-line tool that enhances images using the ESRGAN (Enhanced Super-Resolution Generative Adversarial Networks) algorithm. It provides a convenient interface to interact with an ESRGAN API service and process images for improved visual quality.

Features:

  • Enhance images using the RealESRGAN algorithm
  • Simple and intuitive command-line interface
  • Supports specifying the URL of the ESRGAN API service
  • Process images from various sources (local file or remote URL)
  • Specify custom output filenames for processed images

Usage:

esrgan <service_url> <img_url> <output_filename>

Example:

  • esrgan https://cf13-35-197-62-150.ngrok-free.app "https://static.wikia.nocookie.net/breakingbad/images/b/b4/Walter_2008.png/revision/latest?cb=20200704164147" walter

Installation:

pip install esrgan-cli

Click here for service_url setup details.

Docker Setup

  • docker build -t esrgan-service .
  • docker run --gpus all -p 5000:5000 esrgan-service

Please note that these commands assume that you have Docker installed and configured properly on your system. Additionally, if you have made any modifications to the Dockerfile, ensure that the necessary dependencies and files are included for the ESRGAN service to function correctly.

Contributions and bug reports are welcome!

Acknowledgements:

About

An API Service to upscale images using Real-ESRGAN

Resources

License

Stars

Watchers

Forks

Packages

No packages published