Code Monkey home page Code Monkey logo

neural-style-transfer's Introduction

Update - March 2021

  • I have created a new repo, (nst-zoo)which is much, much more thorough than this one.
  • This repo contains some spaghetti code, but contains some fun images, and will probably stay up forever since it made it into the arctic code vault.

neural-style-transfer

Example Image

Follow along in a GPU-enabled workbook! Link.

Neural Style Transfer utilizes the VGG-19 Image Classification Neural Network to apply transfer learning to images.

VGG19 - Clifford K. Yang

This repository explores two methods - one introduced by Leon A. Gatys, and another introduced by Justin Johnson.

Gatys' method is an iterative process (typically 150-200 iterations) to optimize a generated image, based on a cost function for style and content. The content cost function is defined by comparing the outputs of conv4_2 between the generated image and the content image. The style cost function is defined by comparing the outputs of [conv1_1, conv2_1, conv3_1, conv4_1, conv5_1] between the generated image and the style image.

Instead of using an iterative optimization, Johnson's method transforms images using a single forward pass through the network. It still uses the pre-trained VGG network, but instead trains the model to make transformations using 80,000 training images from the Microsoft COCO dataset. A single forward pass through this network has a loss which is comparable to ~100 iterations of Gatys' method.

The main notebook, Neural_Style_Transfer.ipynb, contains all relevant documentation for this repository.

neural-style-transfer's People

Contributors

nick-morgan avatar

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

Watchers

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