Giter Site home page Giter Site logo

ryanlif / vgg-mnist-style-transfer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reiniscimurs/vgg-mnist-style-transfer

0.0 0.0 0.0 22.17 MB

VGG based calligraphy style transfer for handwritten numbers from MNIST dataset

License: GNU General Public License v3.0

Python 100.00%

vgg-mnist-style-transfer's Introduction

VGG-MNIST-style-transfer

VGG based calligraphy style transfer for handwritten numbers from MNIST dataset. The goal of this project is to embed a certain calligraphy style to hand-drawn numbers and test if multiple style image use improves the transfer. First, we create a composite image of 10x10 random numbers from the MNIST dataset. Then, create a number of calligraphy style images from which the style features are extracted. We augment each individual style number to create a better feature representation and match to MNIST numbers. The features are applied to the original hand-drawn image to change the numbers so that they would possess the selected style but still represent the original contents as much as possible.

Original paper:
Image Style Transfer Using Convolutional Neural Networks, Gatys L.A. et al, 2016
https://openaccess.thecvf.com/content_cvpr_2016/html/Gatys_Image_Style_Transfer_CVPR_2016_paper.html

Main dependencies:

Video of results:

EXPERIMENTS

Before running the code, extract the train-images-idx3-ubyte.zip (MNIST dataset) file in the /mnist folder.

Results

Multiple Styles
3 styles used for style feature extraction:

mnist.jpg out.jpg out.gif style.jpg
MNIST image Output Output GIF Style example

Style 2
1 style image used for feature extraction:

mnist.jpg out.jpg style.jpg
MNIST image Output Style example

5 style images used for feature extraction:

mnist.jpg out.jpg style.jpg
MNIST image Output Style example

100 style images used for feature extraction:

mnist.jpg out.jpg style.jpg
MNIST image Output Style example

vgg-mnist-style-transfer's People

Contributors

reiniscimurs 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.