• This repository has been archived on 17/Aug/2020
  • Stars
    star
    125
  • Rank 284,600 (Top 6 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

All kinds of neural style transformer

easyStyle

All kinds of neural style transformer.

This project collects many kinds of nerual style transformer , including

  • dreamer mode

  • gram matrix style

  • MRF style

  • guided style/patch transformer

My project is foccus on clean and simple implementation of all kinds of algorithm.


1. install and setup

Install following package of Torch7.

cunn
loadcaffe
cudnn

This project needs a GPU with 4G memory at least. Firstly you should download VGG19 caffe model.

cd cnn/vgg19
source ./download_models.sh

2. Quick demo

The .style files descript the arch of network used in style transformer, they are based on Lua language. The .style files is very simple ,all the paramters are configed in thease files.

2.1 dreamer mode

th ezstyle ./dreamer.style

2.2 gram matrix mode

th ezstyle ./gram.style

2.3 MRF mode

th ezstyle ./mrf.style

2.4 guided mode 1 ( masked gram style transform )

th ezstyle ./masked_gram.style

2.5 guided mode 2 ( masked mrf )

[WIP]

3. Resources

All of code is coming from following projects, I have make them more simpler and stupid :).

https://github.com/chuanli11/CNNMRF

https://github.com/alexjc/neural-doodle

https://github.com/awentzonline/image-analogies

https://github.com/jcjohnson/neural-style

https://github.com/DmitryUlyanov/fast-neural-doodle