Description
I have been trying to implement the features described in the "Controlling Perceptual Factors in Neural Style Transfer" research paper.
The code that used for the research paper can be found here: https://github.com/leongatys/NeuralImageSynthesis
The code from Leon Gatys' NeuralImageSynthesis is written in Lua, and operated with an iPython notebook interface.
So far, my attempts to transfer the features into Neural-Style have failed. Has anyone else had success in transferring the features?
Looking at the code, I think that:
-
ImageSynthesis.lua is responsible for the luminescence style transfer.
-
ComputeActivations.lua and ImageSynthesis.lua are responsible for scale control
-
ComputeActivations.lua and ImageSynthesis.lua are responsible for spatial control.
In order to make NeuralImageSynthesis alongside your Neural-Style install, you must replace every instance of /usr/local/torch/install/bin/th
with /home/ubuntu/torch/install/bin/th
. You must also install hdf5 with luarocks install hdf5
, matplotlib with sudo apt-get install python-matplotlib
, skimage with sudo apt-get install python-skimage
, and scipy with sudo pip install scipy
. And of course you need to install and setup jupyter
if you want to use the notebooks.