Git Product home page Git Product logo

srlab's Introduction

SRLab

Single image super resolution algorithm implementation (in progress)

Demo:

Source(128X128)

Source(128X128):

4X

4X

Project Home Page here

More Project Demo

Requirement:

  • Supported python version 2.7

  • pip install Pillow

  • pip install mock==1.0.1

  • pip install six

  • pip install -U numpy scipy scikit-learn

Example:

image = Image.open("test_data/babyface_4.png")

sr_image = SRImageFactory.create_sr_image(image)

reconstructed_sr_image = sr_image.reconstruct(2, 'iccv09')

reconstructed_sr_image.save("test_data/babyface_sr.png", "png")

Note:

Need to work more on performance, it will take around 20 seconds to reconstruct a 128*128 image to 2X its original size, and take around 1 minutes to 4X its original size.(On i7 Cpu, 8G ram)

Run the examples in example/sr_image_example.py:

Add root directory of SRLab to PYTHONPATH:

export PYTHONPATH=$PYTHONPATH:~/schen59/SRLab

Go to the example directory:

cd example

Run the example script:

python sr_image_example.py

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.