This repository was archived by the owner on Aug 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathgram.style
More file actions
59 lines (55 loc) · 1.21 KB
/
gram.style
File metadata and controls
59 lines (55 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
local net = {
image_list = {'./images/trump.png', './images/picasso.png', './output.png'},
input = 1,
output = 3,
convergence = true,
maxIterate = 500,
cnn = {
proto = './cnn/vgg19/VGG_ILSVRC_19_layers_deploy.prototxt',
caffemodel = './cnn/vgg19/VGG_ILSVRC_19_layers.caffemodel'
},
net = {
{
layer = 'input',
type = 'tvloss',
weight = 0.001,
},
{
layer = 'relu1_1',
type = 'gram',
weight = 1,
target = 2,
},
{
layer = 'relu2_1',
type = 'gram',
weight = 1,
target = 2,
},
{
layer = 'relu3_1',
type = 'gram',
weight = 1,
target = 2,
},
{
layer = 'relu4_1',
type = 'gram',
weight = 1,
target = 2,
},
{
layer = 'relu4_2',
type = 'content',
weight = 1000.0,
target = 1,
},
{
layer = 'relu5_1',
type = 'gram',
weight = 1,
target = 2,
}
}
}
return net