项目作者: hnarayanan

项目描述 :
Convolutional neural networks for artistic style transfer.
高级语言: Jupyter Notebook
项目地址: git://github.com/hnarayanan/artistic-style-transfer.git
创建时间: 2017-02-12T15:44:44Z
项目社区:https://github.com/hnarayanan/artistic-style-transfer

开源协议:

下载


Convolutional neural networks for artistic style transfer

This repository contains (TensorFlow and Keras) code that goes along
with a related blog post and talk
(PDF)
. Together, they act as a systematic look at
convolutional neural networks from theory to practice, using artistic
style transfer as a motivating example. The blog post provides context
and covers the underlying theory, while working through the Jupyter
notebooks in this repository offers a more hands-on learning
experience.

If you have any questions about any of this stuff, feel free to open
an issue
or tweet at me: @copingbear.

Setup

  1. Install Python (2.7), pip and virtualenv on your machine. The
    instructions to do this depend on your operating system (Linux, macOS,
    Windows), but there are many tutorials on the internet that should
    help you get started.

  2. Once you have the above setup, it is quite easy to setup the
    requirements for the notebooks in this repository. First you clone a
    copy of this repository:

    1. git clone https://github.com/hnarayanan/artistic-style-transfer.git
  3. Then you navigate to this folder in your shell and then install the
    requirements needed for the Jupyter notebooks.

    1. cd artistic-style-transfer
    2. virtualenv venv
    3. source venv/bin/activate
    4. pip install -r requirements.txt
  4. If it doesn’t exist, create a file called ~/.keras/keras.json and
    make sure it looks like the following:

    1. {
    2. "image_dim_ordering": "tf",
    3. "epsilon": 1e-07,
    4. "floatx": "float32",
    5. "backend": "tensorflow"
    6. }
  5. That’s it! You can now start Jupyter and browse, open, run and
    modify the notebooks.

    1. jupyter notebook

Contents

iPython Notebooks

  1. A linear classifier for MNIST data
  2. A neural network-based classifier for MNIST data (Attempt 1)
  3. A neural network-based classifier for MNIST data (Attempt 2)
  4. A convolutional neural network-based classifier for MNIST data
  5. VGG Net (16) on ImageNet, the easy way
  6. Artistic style transfer with a repurposed VGG Net (16)

External Resources

  1. Related blog post
  2. Related talk slides