code for paper "Combining Markov Random Fields and Convolutional Neural Networks for Image Synthesis"
Lua
859
48 commits
updated Oct 12, 2019
This is the torch implementation for paper "Combining Markov Random Fields and Convolutional Neural Networks for Image Synthesis"
This algorithm is for
A photo (left) is transfered into a painting (right) using Picasso's self portrait 1907 (middle) as the reference style. Notice important facial features, such as eyes and nose, are faithfully kept as those in the Picasso's painting.
In this example, we first transfer a cartoon into a photo.
We then swap the two inputs and transfer the photo into the cartoon.
It is possible to balance the amount of content and the style in the result: pictures in the second coloumn take more content, and pictures in the third column take more style.
As building Torch with the latest CUDA is a troublesome work, we recommend following the following steps to people who want to reproduce the results: It has been tested on Ubuntu with CUDA 10.
Step One: Install CUDA 10 and CUDNN 7.6.2
If you have a fresh Ubuntu, we recommend Lambda Stack which helps you install the latest drivers, libraries, and frameworks for deep learning. Otherwise, you can install the CUDA toolkit and CUDNN from these links:
Step Two: Install Torch
git clone https://github.com/nagadomi/distro.git ~/torch --recursive
cd ~/torch
./install-deps
./clean.sh
./update.sh
. ~/torch/install/bin/torch-activate
sudo apt-get install libprotobuf-dev protobuf-compiler
luarocks install loadcaffe
Step Three: Download Pre-trained VGG Network Pre-trained network:
cd data/models
./download_models.sh
qlua cnnmrf.lua
qlua run_trans.lua
69 followers · starred Mar 2016
544 followers · starred Mar 2016
9,557 followers · starred Jan 2016
155 followers · starred Jun 2016
code for paper "Combining Markov Random Fields and Convolutional Neural Networks for Image Synthesis"
Lua
859
48 commits
updated Oct 12, 2019
This is the torch implementation for paper "Combining Markov Random Fields and Convolutional Neural Networks for Image Synthesis"
This algorithm is for
A photo (left) is transfered into a painting (right) using Picasso's self portrait 1907 (middle) as the reference style. Notice important facial features, such as eyes and nose, are faithfully kept as those in the Picasso's painting.
In this example, we first transfer a cartoon into a photo.
We then swap the two inputs and transfer the photo into the cartoon.
It is possible to balance the amount of content and the style in the result: pictures in the second coloumn take more content, and pictures in the third column take more style.
As building Torch with the latest CUDA is a troublesome work, we recommend following the following steps to people who want to reproduce the results: It has been tested on Ubuntu with CUDA 10.
Step One: Install CUDA 10 and CUDNN 7.6.2
If you have a fresh Ubuntu, we recommend Lambda Stack which helps you install the latest drivers, libraries, and frameworks for deep learning. Otherwise, you can install the CUDA toolkit and CUDNN from these links:
Step Two: Install Torch
git clone https://github.com/nagadomi/distro.git ~/torch --recursive
cd ~/torch
./install-deps
./clean.sh
./update.sh
. ~/torch/install/bin/torch-activate
sudo apt-get install libprotobuf-dev protobuf-compiler
luarocks install loadcaffe
Step Three: Download Pre-trained VGG Network Pre-trained network:
cd data/models
./download_models.sh
qlua cnnmrf.lua
qlua run_trans.lua
69 followers · starred Mar 2016
544 followers · starred Mar 2016
9,557 followers · starred Jan 2016
155 followers · starred Jun 2016