Skip to content

Commit 2b0e56a

Browse files
committed
surging
1 parent 156c56c commit 2b0e56a

File tree

7 files changed

+518
-36
lines changed

7 files changed

+518
-36
lines changed

models/caffe1.prototxt

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
name: "CaffeNet1"
2+
input: "data"
3+
input_dim: 10
4+
input_dim: 3
5+
input_dim: 227
6+
input_dim: 227
7+
layers {
8+
name: "conv1"
9+
type: CONVOLUTION
10+
bottom: "data"
11+
top: "conv1"
12+
convolution_param {
13+
num_output: 96
14+
kernel_size: 11
15+
stride: 4
16+
}
17+
}
18+
layers {
19+
name: "relu1"
20+
type: RELU
21+
bottom: "conv1"
22+
top: "conv1"
23+
}
24+
layers {
25+
name: "pool1"
26+
type: POOLING
27+
bottom: "conv1"
28+
top: "pool1"
29+
pooling_param {
30+
pool: MAX
31+
kernel_size: 3
32+
stride: 2
33+
}
34+
}
35+
layers {
36+
name: "norm1"
37+
type: LRN
38+
bottom: "pool1"
39+
top: "norm1"
40+
lrn_param {
41+
local_size: 5
42+
alpha: 0.0001
43+
beta: 0.75
44+
}
45+
}
46+
layers {
47+
name: "conv2"
48+
type: CONVOLUTION
49+
bottom: "norm1"
50+
top: "conv2"
51+
convolution_param {
52+
num_output: 256
53+
pad: 2
54+
kernel_size: 5
55+
group: 2
56+
}
57+
}
58+
layers {
59+
name: "relu2"
60+
type: RELU
61+
bottom: "conv2"
62+
top: "conv2"
63+
}
64+
layers {
65+
name: "pool2"
66+
type: POOLING
67+
bottom: "conv2"
68+
top: "pool2"
69+
pooling_param {
70+
pool: MAX
71+
kernel_size: 3
72+
stride: 2
73+
}
74+
}
75+
layers {
76+
name: "norm2"
77+
type: LRN
78+
bottom: "pool2"
79+
top: "norm2"
80+
lrn_param {
81+
local_size: 5
82+
alpha: 0.0001
83+
beta: 0.75
84+
}
85+
}
86+
layers {
87+
name: "conv3"
88+
type: CONVOLUTION
89+
bottom: "norm2"
90+
top: "conv3"
91+
convolution_param {
92+
num_output: 384
93+
pad: 1
94+
kernel_size: 3
95+
}
96+
}
97+
layers {
98+
name: "relu3"
99+
type: RELU
100+
bottom: "conv3"
101+
top: "conv3"
102+
}
103+
layers {
104+
name: "conv4"
105+
type: CONVOLUTION
106+
bottom: "conv3"
107+
top: "conv4"
108+
convolution_param {
109+
num_output: 384
110+
pad: 1
111+
kernel_size: 3
112+
group: 2
113+
}
114+
}
115+
layers {
116+
name: "relu4"
117+
type: RELU
118+
bottom: "conv4"
119+
top: "conv4"
120+
}
121+
layers {
122+
name: "conv5"
123+
type: CONVOLUTION
124+
bottom: "conv4"
125+
top: "conv5"
126+
convolution_param {
127+
num_output: 256
128+
pad: 1
129+
kernel_size: 3
130+
group: 2
131+
}
132+
}
133+
layers {
134+
name: "relu5"
135+
type: RELU
136+
bottom: "conv5"
137+
top: "conv5"
138+
}
139+
layers {
140+
name: "pool5"
141+
type: POOLING
142+
bottom: "conv5"
143+
top: "pool5"
144+
pooling_param {
145+
pool: MAX
146+
kernel_size: 3
147+
stride: 2
148+
}
149+
}

models/caffe2.prototxt

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: "CaffeNet2"
2+
input: "pool5"
3+
input_dim: 10
4+
input_dim: 256
5+
input_dim: 6
6+
input_dim: 6
7+
layers {
8+
name: "fc6"
9+
type: INNER_PRODUCT
10+
bottom: "pool5"
11+
top: "fc6"
12+
inner_product_param {
13+
num_output: 4096
14+
}
15+
}
16+
layers {
17+
name: "relu6"
18+
type: RELU
19+
bottom: "fc6"
20+
top: "fc6"
21+
}
22+
layers {
23+
name: "drop6"
24+
type: DROPOUT
25+
bottom: "fc6"
26+
top: "fc6"
27+
dropout_param {
28+
dropout_ratio: 0.5
29+
}
30+
}
31+
layers {
32+
name: "fc7"
33+
type: INNER_PRODUCT
34+
bottom: "fc6"
35+
top: "fc7"
36+
inner_product_param {
37+
num_output: 4096
38+
}
39+
}
40+
layers {
41+
name: "relu7"
42+
type: RELU
43+
bottom: "fc7"
44+
top: "fc7"
45+
}
46+
layers {
47+
name: "drop7"
48+
type: DROPOUT
49+
bottom: "fc7"
50+
top: "fc7"
51+
dropout_param {
52+
dropout_ratio: 0.5
53+
}
54+
}
55+
layers {
56+
name: "fc8"
57+
type: INNER_PRODUCT
58+
bottom: "fc7"
59+
top: "fc8"
60+
inner_product_param {
61+
num_output: 1000
62+
}
63+
}
64+
layers {
65+
name: "prob"
66+
type: SOFTMAX
67+
bottom: "fc8"
68+
top: "prob"
69+
}

0 commit comments

Comments
 (0)