Coder Social home page Coder Social logo

meet-minimalist / a-neural-algorithm-of-artistic-style-paper-implementation Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 57.72 MB

Tensorflow implementation of Algorithmic Style Transfer Paper 2015

Jupyter Notebook 99.86% Python 0.14%
tensorflow-tutorials jupyter-notebook python3 style-transfer vgg16-model paper-implementations paper

a-neural-algorithm-of-artistic-style-paper-implementation's Introduction

A-Neural-Algorithm-of-Artistic-Style-Paper-Implementation

Tensorflow implementation of paper "A Neural Algorithm of Artistic Style" (https://arxiv.org/abs/1508.06576)

In this notebook, we'll implement the paper and reconstruct the results of the said paper. The steps of the process is as follows. Also, the notebook is created to facilitate self-learning approach.

Step 1: Preprocessing the input image

Step 2: Computing the output for selected layers for the content image and all the layers for style image.

Step 3: What are loss functions in this problem and computing the loss functions.

Step 3A: Content Loss for reconstruction of the content image.

Step 3B: Style Loss for reconstruction of the style from a style image irrespective of content placement of the image.

Step 4: Creating combined Tensorflow model, running it to minimize both the losses and optimize the input noise variable.

Files:

  1. Final Results.jpg - Combined image for all the results.
  2. helper.py - Used for pre-processing the image and post-processing the image
  3. tf_helper.py - Used to compute the layer wise output for a given image
  4. paper folder - contains the paper
  5. tensorflow_vgg folder - contains the helper vgg16_avg_pool.py function to load the pre-trained weights ".npy" file
  6. image_resources/content - contrains content image files used as a content images in style transfer
  7. image_resources/style - contains style image files used as a style image in style transfer
  8. image_resources/outputs - contains outputs of the notebook.
  9. Other resources - contains resources for notebook and cut outs of paper.

References:

  1. Paper link: https://arxiv.org/abs/1508.06576

  2. VGG16 Tensorflow Model - https://github.com/machrisaa/tensorflow-vgg Pre-trained VGG16 tensorflow model along with helper files. Big shoutout to the owner. Also, vgg16.npy can be downloaded from the link provided in this repository. I have modified the vgg16.py file to facilitate average pooling instead of max pooling.

  3. Denoising loss suggestion - https://github.com/Hvass-Labs/TensorFlow-Tutorials/blob/master/15_Style_Transfer.ipynb

a-neural-algorithm-of-artistic-style-paper-implementation's People

Contributors

meet-minimalist avatar

Stargazers

 avatar  avatar

Watchers

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