name CBCL layers name data type IMAGE_DATA top data top label image_da

 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: "CBCL"
layers {
name: "data"
type: IMAGE_DATA
top: "data"
top: "label"
image_data_param {
source: "/tmp/train.txt"
batch_size: 10
shuffle: true
}
include: { phase: TRAIN }
}
layers {
name: "data"
type: IMAGE_DATA
top: "data"
top: "label"
image_data_param {
source: "/tmp/test.txt"
batch_size: 10
}
include: { phase: TEST }
}
layers {
name: "C1"
type: CONVOLUTION
top: "C1"
bottom: "data"
convolution_param {
kernel_size: 3
num_output: 8
}
}
layers {
name: "C2"
type: CONVOLUTION
top: "C2"
bottom: "C1"
convolution_param {
kernel_size: 4
num_output: 32
}
}
layers {
name: "S1"
type: POOLING
top: "S1"
bottom: "C2"
pooling_param {
pool: MAX
kernel_size: 2
}
}
layers {
name: "C3"
type: CONVOLUTION
top: "C3"
bottom: "S1"
convolution_param {
kernel_size: 4
num_output: 128
}
}
layers {
name: "C4"
type: CONVOLUTION
top: "C4"
bottom: "C3"
convolution_param {
kernel_size: 4
num_output: 1024
}
}
layers {
name: "F1"
top: "F1"
bottom: "C4"
type: INNER_PRODUCT
base_lr: 0.01
lr_policy: "step"
gamma: 0.1
stepsize: 100000
max_iter: 350000
momentum: 0.9
inner_product_param {
num_output: 2
}
}
layers {
name: "loss"
type: SOFTMAX_LOSS
bottom: "F1"
bottom: "label"
top: "loss"
}