Code Monkey home page Code Monkey logo

das-upscale's Introduction

das-Upscale - Python Image Upscaling Script

This script is an easy-to-use implementation of the RealESRGAN model for upscaling images. RealESRGAN is a state-of-the-art deep learning model designed for enhancing the resolution and quality of images. The script allows users to select a source folder containing images, a destination folder for the upscaled images, and a pre-trained model file. The upscale factor (2x, 4x, or 8x) can be chosen according to the user's preference. The script supports various common image formats such as JPEG, PNG, BMP, TIFF, and WebP. In addition to the upscaled images, the script also saves the original images with a "original_" prefix in the destination folder.

For more information about the RealESRGAN model and its implementation, visit the original repository by the authors: Real-ESRGAN

Dependencies

To run the script, you will need to have the following dependencies installed:

  1. Python 3.x
  2. OpenCV (cv2)
  3. PyTorch (torch)
  4. BasicSR (basicsr)
  5. NumPy (numpy)
  6. Tkinter (tkinter)
  7. tqdm (tqdm)

Usage

Upon execution, the script will prompt the user to select the input and output folders, as well as the path to the pre-trained RealESRGAN model. The user will then be asked to input the desired upscale factor (2x, 4x, or 8x). The script will upscale all the images in the input folder and save them alongside the original images in the output folder.

The upscaling process can significantly improve the quality and resolution of images, making it useful for various applications such as enhancing photographs, restoring old or low-quality images, and improving the visual quality of images for printing or display purposes.

das-upscale's People

Contributors

devarqsangoi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.