Hi,
I am using caffe with the grayscale image as input. I use the tool: convert_imageset to create the lmdb dataformat.
However, when I use my own CNN netowrk, with the data layer as following, the channel size of the first blob is 3, just like I am using the 3 channel image. The grayscale image is synthesized by myself in matlab, and when i load it in the matlab, it is also single channel. But why the caffe specify it as 3 channel? does it because I wrongly synthesized the grayscale image? or because i wrongly used the tool: convert_imageset ?
Has anybody met this problem before? I appreciate all the reply you provide.
layer {
name: "image"
type: "Data"
top: "dXataX"
top: "ylabely"
include {
phase: TEST
}
transform_param {
scale: 0.004 #change here
}
data_param {
source: "../../data/syn_reshaped/train_lmdb"
batch_size: 256
backend: LMDB
}
}
layer {
name: "image"
type: "Data"
top: "dXataX"
top: "ylabely"
include {
phase: TRAIN
}
transform_param {
scale: 0.004 #change here
}
data_param {
source: "../../data/syn_reshaped/cv_lmdb"
batch_size: 256
backend: LMDB
}
}