Coder Social home page Coder Social logo

soufiomario / keras-super-resolution Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kcct-fujimotolab/keras-super-resolution

0.0 1.0 0.0 47 KB

Easy model running super resolution based on SRCNN using Keras.

License: MIT License

Python 100.00%

keras-super-resolution's Introduction

Super_resolution

Easy model running super resolution based on SRCNN using Keras.

Description

Implementation of SRCNN with RGB using Keras. These programs can load images from the specified directory, resize these images and train the Keras model. Also, trained models can be loaded and can perform upsampling.

Requirements

  • Python 3.0 or more
  • Keras 2.0 or more (Tensorflow backend)
  • Pillow
  • numpy
  • tqdm
  • h5py

Get started

  1. Clone this repository:
git clone https://github.com/kcct-fujimotolab/Super_resolution.git
cd Super_resolution/
  1. Make a directory for data sets:
mkdir images
  1. Collect images (more than thousands better):
ls images/
data0000.jpg   data0001.jpg   ...   data9999.jpg
  1. Start training with specifying image size, number of epochs, data set directory, etc.:
python train.py --input images/ --size 64 64 --epoch 1000
  1. Do super resolution with running sr2x.py:
python sr2x.py
Using TensorFlow backend.
Enter the file name (*.jpg)
>> test/data.jpg

Options

--help -h: show information

train.py

--input -i: data sets path (default -i images/)
--size -z: image size, 2 values required, must be multiples of 2 (default -z 128 128)
--epoch -e: number of epochs (default -e 3000)
--batch -b: batch size (default -b 64)
--test -t: test data path (default None, example -t images_test/)

sr2x.py

--file -f: image path (default None, example -f test/image.jpg)
--dir -d: images directory path (default None, example -d test/)
--output -o: number of epochs (default None, example -o output/)

Results

We extracted 4096 images from the face data provided by Labeled Faces in the Wild, and trained 1000 epochs.
A part of the results are shown below.

A
B
C

Author

Fujimoto Lab in Kobe City College of Technology
Undergraduate Student of Electronics Department
@yoidea

keras-super-resolution's People

Contributors

yoidea avatar

Watchers

James Cloos 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.