Giter VIP home page Giter VIP logo

sairajk / image-super-resolution-application Goto Github PK

View Code? Open in Web Editor NEW
38.0 0.0 14.0 20.72 MB

This is an Image Super Resolution model implemented in python using keras. This model comes with a GUI to allow users to make use of the model easily.

License: GNU General Public License v3.0

Python 100.00%
keras super-resolution application python gui pretrained user-interface user-friendly computer-vision deep-learning

image-super-resolution-application's Introduction

Single Image Super Resolution (with GUI)

Image super resolution refers to the task of estimating a high-resolution image from its lower resolution version. In a more simple sense it requires us to generate pixel values for interpolating the given low resolution image to make it large. In this project I employ a deep learning approach to super resolve images to double or quadruple the original image. I used Keras with Tensorflow backend to implement the model in Python 3. The model I used is fairly simple and conists of layers of Convolutional and Deconvolutional with skip connections. A Mean Squared Error (MSE) loss is used to guide our model. I also designed a GUI with the model to make it to be used easily.

Super Resolution Example

The model is pre-trained with all weights included. So all you need to do is, clone this repository and run the sr_gui_browse.py. That's it.

GUI

The GUI provides a easy-to-use Interface for super resolution. The GUI has 2 options for Super Resolution, either to double or to quadruple the original input image. It also comes with an option of saving the Super Resolved image.

SR GUI Opening window

Files

This repository consists of all files used during the projects. Details of what each file does is given in the Readme.docx file. And even the code files are commented wherever necessary.

Running the GUI

Examples

Some examples are shown below :

  • Example 1:   Original image (Left),      x2 Image (Center),      x4 Image (Right)

child original image child x2 image child x4 image



  • Example 2:   Original image (Left),      x2 Image (Center),      x4 Image (Right)

bird original image bird x2 image bird x4 image



  • Example 3:   Original image (Left),      x2 Image (Center),      x4 Image (Right)

pencils original image pencils x2 image pencils x4 image



  • NOTE : The size of images shown above are not actual, they are resized to fit document. See SR_sample_images for the above images in actual size.

License

This project is licensed under the GPL v3.0 License - see the LICENSE.md file for details

Acknowledgments

image-super-resolution-application's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

image-super-resolution-application's Issues

Import error

What could be a fix for this ImportError?

(base) riccardo@riccardo-Aspire-A317-51G:~$ git clone https://github.com/sairajk/Image-Super-Resolution-Application
Clone in 'Image-Super-Resolution-Application' in corso...
remote: Enumerating objects: 125, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 125 (delta 40), reused 0 (delta 0), pack-reused 62
Ricezione degli oggetti: 100% (125/125), 20.69 MiB | 24.69 MiB/s, fatto.
Risoluzione dei delta: 100% (55/55), fatto.
(base) riccardo@riccardo-Aspire-A317-51G:~$ cd Image-Super-Resolution-Application
(base) riccardo@riccardo-Aspire-A317-51G:~/Image-Super-Resolution-Application$ ls
download.py    preprocess.py  requirements.txt  sr_main_keras.py  vid2frame.py
downsample.py  Readme.docx    screenshots       SR_sample_images
LICENSE        README.md      sr_gui_browse.py  train_best_w.h5
(base) riccardo@riccardo-Aspire-A317-51G:~/Image-Super-Resolution-Application$ python sr_gui_browse.py
Traceback (most recent call last):
  File "sr_gui_browse.py", line 5, in <module>
    from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
ImportError: cannot import name 'NavigationToolbar2TkAgg' from 'matplotlib.backends.backend_tkagg' (/home/riccardo/anaconda3/lib/python3.8/site-packages/matplotlib/backends/backend_tkagg.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.