Skip to content

Instantly share code, notes, and snippets.

@htoyryla
htoyryla / neural-delta2.lua
Created September 13, 2016 19:41
Neural-style modified according to the delta gram matrix method as described in http://arxiv.org/abs/1606.01286v1
--
-- Neural-style modified by Hannu Töyrylä 13 Sep 2016
-- according to the delta gram matrix method
-- as described in http://arxiv.org/abs/1606.01286v1
--
-- Install and use just like http://github.com/jcjohnson/neural-style/
-- except for the additional parameter delta (use values 0 to 16, too large values can result in error)
--
require 'torch'
require 'nn'