Skip to content

Commit

Permalink
Updated prototxts to reflect most recent Sun BCNN structure. Refactor…
Browse files Browse the repository at this point in the history
…ed training/test scripts.
  • Loading branch information
valentinp committed Nov 7, 2017
1 parent dc9ec04 commit 4fd11ae
Show file tree
Hide file tree
Showing 8 changed files with 3,261 additions and 380 deletions.
16 changes: 8 additions & 8 deletions caffe-files/solver_sunbcnn.prototxt
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
net: "train_sunbcnn.prototxt"
test_initialization: true
net: "train_kitti_sunbcnn_0.prototxt"
test_initialization: false
test_iter: 50
test_interval: 500
display: 100
average_loss: 100
base_lr: 0.01
display: 250
average_loss: 50
base_lr: 1e-3
max_iter: 30000
lr_policy: "step"
stepsize: 10000
stepsize: 5000
gamma: 0.94
momentum: 0.9
weight_decay: 0.0002
snapshot: 5000
snapshot_prefix: "sun_bcnn_snapshot"
snapshot: 10000
snapshot_prefix: "kitti_sunbcnn_0_snapshot"
solver_mode: GPU
114 changes: 21 additions & 93 deletions caffe-files/test_sunbcnn.prototxt → caffe-files/test_kitti_sunbcnn.prototxt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ layer {
top: "data"
input_param {
shape {
dim: 100
dim: 25
dim: 3
dim: 224
dim: 224
}
}
}

layer {
name: "conv1"
type: "Convolution"
Expand Down Expand Up @@ -1040,7 +1041,7 @@ layer {
}
}
layer {
name: "cls1_reduction_pose"
name: "cls1_reduction"
type: "Convolution"
bottom: "cls1_pool"
top: "cls1_reduction"
Expand Down Expand Up @@ -1082,7 +1083,7 @@ layer {
}
}
layer {
name: "cls1_fc1_pose"
name: "cls1_fc1"
type: "InnerProduct"
bottom: "cls1_reduction"
top: "cls1_fc1"
Expand Down Expand Up @@ -1123,10 +1124,10 @@ layer {
}
}
layer {
name: "cls1_fc_pose_xyz"
name: "cls1_fc_sundir"
type: "InnerProduct"
bottom: "cls1_fc1"
top: "cls1_fc_xyz"
top: "cls1_fc_sundir"
param {
lr_mult: 1
decay_mult: 1
Expand All @@ -1151,35 +1152,10 @@ layer {
layer {
name: "normalize_lyr1"
type: "L2Norm"
bottom: "cls1_fc_xyz"
top: "cls1_fc_xyz_norm"
bottom: "cls1_fc_sundir"
top: "cls1_fc_sundir_norm"
}

layer {
name: "cls1_fc_pose_wpqr"
type: "InnerProduct"
bottom: "cls1_fc1"
top: "cls1_fc_wpqr"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
inner_product_param {
num_output: 4
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
}

layer {
name: "icp4_reduction1"
Expand Down Expand Up @@ -2026,7 +2002,7 @@ layer {
}
}
layer {
name: "cls2_reduction_pose"
name: "cls2_reduction"
type: "Convolution"
bottom: "cls2_pool"
top: "cls2_reduction"
Expand Down Expand Up @@ -2109,10 +2085,10 @@ layer {
}
}
layer {
name: "cls2_fc_pose_xyz"
name: "cls2_fc_sundir"
type: "InnerProduct"
bottom: "cls2_fc1"
top: "cls2_fc_xyz"
top: "cls2_fc_sundir"
param {
lr_mult: 1
decay_mult: 1
Expand All @@ -2133,38 +2109,15 @@ layer {
}
}
}

layer {
name: "normalize_lyr2"
type: "L2Norm"
bottom: "cls2_fc_xyz"
top: "cls2_fc_xyz_norm"
bottom: "cls2_fc_sundir"
top: "cls2_fc_sundir_norm"
}

layer {
name: "cls2_fc_pose_wpqr"
type: "InnerProduct"
bottom: "cls2_fc1"
top: "cls2_fc_wpqr"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
inner_product_param {
num_output: 4
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
}

layer {
name: "icp7_reduction1"
type: "Convolution"
Expand Down Expand Up @@ -3025,7 +2978,7 @@ layer {
}
}
layer {
name: "cls3_fc1_pose"
name: "cls3_fc1"
type: "InnerProduct"
bottom: "cls3_pool"
top: "cls3_fc1"
Expand Down Expand Up @@ -3068,10 +3021,10 @@ layer {


layer {
name: "cls3_fc_pose_xyz"
name: "cls3_fc_sundir"
type: "InnerProduct"
bottom: "cls3_fc1"
top: "cls3_fc_xyz"
top: "cls3_fc_sundir"
param {
lr_mult: 1
decay_mult: 1
Expand All @@ -3092,35 +3045,10 @@ layer {
}
}
}

layer {
name: "normalize_lyr3"
type: "L2Norm"
bottom: "cls3_fc_xyz"
top: "cls3_fc_xyz_norm"
}

layer {
name: "cls3_fc_pose_wpqr"
type: "InnerProduct"
bottom: "cls3_fc1"
top: "cls3_fc_wpqr"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
inner_product_param {
num_output: 4
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
bottom: "cls3_fc_sundir"
top: "cls3_fc_sundir_norm"
}
Loading

0 comments on commit 4fd11ae

Please sign in to comment.