Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1019 Bytes

neural-style.md

File metadata and controls

42 lines (30 loc) · 1019 Bytes

Instructions

To generate awesome images applying the style of an image to another image Read the README.md at neural-style for learning how to use the tool.

  • Install torch
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc # or .zshrc or .profile
  • Install caffe
sudo apt-get install libprotobuf-dev protobuf-compiler # for mac "brew install protobuf"
luarocks install loadcaffe
  • Install neural_style and presets
git clone https://github.com/jcjohnson/neural-style.git ~/neural-style
cd ~/neural-style && sh models/download_models.sh
  • Usage
th neural_style.lua -style_image <path-to-style-img> -content_image <path-to-image-to-process> -gpu -1 -output_image <path-to-output-image>.png
# "-gpu -1" to use just CPU

Examples