Coder Social home page Coder Social logo

upscale_image's Introduction

upscale_image

To run it on colab: open the colab

  1. run "!git clone https://github.com/zain5266/upscale_image.git"
  2. run "!apt-get install libnvidia-gl-525"
  3. run "!sudo apt install -y vulkan-tools"
  4. Change the current working directory: import os os.chdir("/content/upscale_image")
  5. Import upscale_image function: from image_upscale import upscale_image
  6. call the functions with required parameters: parameters are : img_path: input image path ("/content/example.jpg") output_path: output image path ("/content/ouput.jpg") model_name: name of the models -> choose from available models (e.g "RealESRGAN_General_WDN_x4_v3") scale: select a scale like 1 to 4

Example run: img_path="/content/example.jpg"

output_path="/content/ouput.jpg"

model_name= "RealESRGAN_General_WDN_x4_v3"

scale= 4

upscale_image(img_path,output_path,model_name,scale)

The image will be saved on the output path

Credits

IT IS THE COLAB IMPLEMENTATION OF "upscayl"

upscayl link: https://github.com/upscayl/upscayl

More model are available at: https://github.com/upscayl/custom-models

upscale_image's People

Contributors

zain5266 avatar

Stargazers

 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.