I am using gray image(1X1920x1080) as input and colour image as output.(3X1920x1080)
my portotxt file looks likes this:
layer {
name: "image_data"
type: "ImageData"
top: "data"
top: "label1"
include {
phase: TRAIN
}
transform_param {
scale: 0.00390625
}
image_data_param {
source: "data/imagenet/deps/train_pp.txt"
root_folder: "data/imagenet/deps/"
batch_size: 50
is_color: false
shuffle: false
}
}
layer {
name: "lp_labels"
type: "ImageData"
top: "lp_labels"
top: "label2"
include {
phase: TRAIN
}
transform_param {
scale: 0.00390625
}
image_data_param {
source: "data/imagenet/rgb/val_pp.txt"
root_folder:"data/imagenet/rgb/"
batch_size: 50
is_color: true
shuffle: false
}
}
.
.
.
.
.
layer {
name: "lp_fc8"
type: "InnerProduct"
bottom: "fc7"
top: "lp_fc8"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
inner_product_param {
num_output:2073600 #(where 1920x1080=2073600, 3X1920x1080=6220800 ,50x3X1920x1080=311040000 )
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
name: "sigmoid8"
type: "Sigmoid"
bottom: "lp_fc8"
top: "predict"
}
layer {
name: "lp_loss"
type: "EuclideanLoss"
bottom: "predict"
bottom: "lp_labels"
top: "lp_loss"
loss_param {
}
loss_weight: 20
}
Error:
I am getting the following error. The size is <2gb.
1: Is there any constraints about the number of outputs at innerproduct layer?
2: Or Is there some relationship between the number of outputs of previous or following layers?
I am new to caffe, please help me.
Error:lp_fc8 -> lp_fc8
shape[i] <=
2147483647 / count_ (4096 vs. 1035) blob size exceeds INT_MAX