Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mperlet/d0fcf728954eebf44a5ef6ba231fcbdf to your computer and use it in GitHub Desktop.
Save mperlet/d0fcf728954eebf44a5ef6ba231fcbdf to your computer and use it in GitHub Desktop.
deep-photo-styletransfer vagrant setup history
sudo apt-get update
sudo apt-get install octave git libmatio2 libprotobuf-dev protobuf-compiler nvidia-cuda-toolkit octave-image
git clone https://github.com/luanfujun/deep-photo-styletransfer.git
cd deep-photo-styletransfer/
bash models/download_models.sh
cd ..
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
cd ..
cd deep-photo-styletransfer/
make clean
make
cd gen_laplacian/
cp */* .
octave gen_laplacian.m
source ~/.bashrc
cd ~/deep-photo-styletransfer
luarocks install loadcaffe
luarocks install matio
wget https://raw.githubusercontent.com/jcjohnson/neural-style/master/neural_style.lua
mv VGG_ILSVRC_19_layers.caffemodel models
th neural_style.lua -gpu -1 -content_image examples/input/in1.png -style_image examples/style/tar1.png -num_iterations 1000 -save_iter 100 -print_iter 1
@mperlet
Copy link
Author

mperlet commented Mar 28, 2017

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.provider "virtualbox" do |vb|
     vb.memory = "10000"
   end
end

vagrant up; vagrant ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment