Skip to content

Commit 2f5889c

Browse files
committed
Use input_shape instead of input_dim in examples
1 parent 833b334 commit 2f5889c

File tree

11 files changed

+66
-44
lines changed

11 files changed

+66
-44
lines changed

examples/cifar10/cifar10_full.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: "CIFAR10_full_deploy"
22
# N.B. input image must be in CIFAR-10 format
33
# as described at http://www.cs.toronto.edu/~kriz/cifar.html
44
input: "data"
5-
input_dim: 1
6-
input_dim: 3
7-
input_dim: 32
8-
input_dim: 32
5+
input_shape {
6+
dim: 1
7+
dim: 3
8+
dim: 32
9+
dim: 32
10+
}
911
layer {
1012
name: "conv1"
1113
type: "Convolution"

examples/cifar10/cifar10_quick.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "CIFAR10_quick_test"
22
input: "data"
3-
input_dim: 1
4-
input_dim: 3
5-
input_dim: 32
6-
input_dim: 32
3+
input_shape {
4+
dim: 1
5+
dim: 3
6+
dim: 32
7+
dim: 32
8+
}
79
layer {
810
name: "conv1"
911
type: "Convolution"

examples/mnist/lenet.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "LeNet"
22
input: "data"
3-
input_dim: 64
4-
input_dim: 1
5-
input_dim: 28
6-
input_dim: 28
3+
input_shape {
4+
dim: 64
5+
dim: 1
6+
dim: 28
7+
dim: 28
8+
}
79
layer {
810
name: "conv1"
911
type: "Convolution"

examples/net_surgery/bvlc_caffenet_full_conv.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Fully convolutional network version of CaffeNet.
22
name: "CaffeNetConv"
33
input: "data"
4-
input_dim: 1
5-
input_dim: 3
6-
input_dim: 451
7-
input_dim: 451
4+
input_shape {
5+
dim: 1
6+
dim: 3
7+
dim: 451
8+
dim: 451
9+
}
810
layer {
911
name: "conv1"
1012
type: "Convolution"

examples/net_surgery/conv.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Simple single-layer network to showcase editing model parameters.
22
name: "convolution"
33
input: "data"
4-
input_dim: 1
5-
input_dim: 1
6-
input_dim: 100
7-
input_dim: 100
4+
input_shape {
5+
dim: 1
6+
dim: 1
7+
dim: 100
8+
dim: 100
9+
}
810
layer {
911
name: "conv"
1012
type: "Convolution"

examples/siamese/mnist_siamese.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "mnist_siamese"
22
input: "data"
3-
input_dim: 10000
4-
input_dim: 1
5-
input_dim: 28
6-
input_dim: 28
3+
input_shape {
4+
dim: 10000
5+
dim: 1
6+
dim: 28
7+
dim: 28
8+
}
79
layer {
810
name: "conv1"
911
type: "Convolution"

models/bvlc_alexnet/deploy.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "AlexNet"
22
input: "data"
3-
input_dim: 10
4-
input_dim: 3
5-
input_dim: 227
6-
input_dim: 227
3+
input_shape {
4+
dim: 10
5+
dim: 3
6+
dim: 227
7+
dim: 227
8+
}
79
layer {
810
name: "conv1"
911
type: "Convolution"

models/bvlc_googlenet/deploy.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "GoogleNet"
22
input: "data"
3-
input_dim: 10
4-
input_dim: 3
5-
input_dim: 224
6-
input_dim: 224
3+
input_shape {
4+
dim: 10
5+
dim: 3
6+
dim: 224
7+
dim: 224
8+
}
79
layer {
810
name: "conv1/7x7_s2"
911
type: "Convolution"

models/bvlc_reference_caffenet/deploy.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "CaffeNet"
22
input: "data"
3-
input_dim: 10
4-
input_dim: 3
5-
input_dim: 227
6-
input_dim: 227
3+
input_shape {
4+
dim: 10
5+
dim: 3
6+
dim: 227
7+
dim: 227
8+
}
79
layer {
810
name: "conv1"
911
type: "Convolution"

models/bvlc_reference_rcnn_ilsvrc13/deploy.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "R-CNN-ilsvrc13"
22
input: "data"
3-
input_dim: 10
4-
input_dim: 3
5-
input_dim: 227
6-
input_dim: 227
3+
input_shape {
4+
dim: 10
5+
dim: 3
6+
dim: 227
7+
dim: 227
8+
}
79
layer {
810
name: "conv1"
911
type: "Convolution"

models/finetune_flickr_style/deploy.prototxt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "FlickrStyleCaffeNet"
22
input: "data"
3-
input_dim: 10
4-
input_dim: 3
5-
input_dim: 227
6-
input_dim: 227
3+
input_shape {
4+
dim: 10
5+
dim: 3
6+
dim: 227
7+
dim: 227
8+
}
79
layer {
810
name: "conv1"
911
type: "Convolution"

0 commit comments

Comments
 (0)