Code and data for paper "Deep Photo Style Transfer": https://arxiv.org/abs/1703.07511
Code and data for paper "Deep Photo Style Transfer"
This software is published for academic and non-commercial use only.
This code is based on torch. It has been tested on Ubuntu 14.04 LTS.
makefilefor your machine):
make clean && make
To generate all results (in
examples/) using the provided scripts, simply run
run('gen_laplacian/gen_laplacian.m')in Matlab or Octave and then
python gen_all.pyin Python. The final output will be in
examples/respectively. They will have the following filename form:
gen_laplacian/gen_laplacian.min Matlab. The output matrix will have the following filename form:
Note: Please make sure that the content image resolution is consistent for Matting Laplacian computation in Matlab and style transfer in Torch, otherwise the result won't be correct.
th neuralstyle_seg.lua -content_image -style_image