I created leveldb for the depth images from the following dataset
Although the leveldb was created successfully, when loading the it using the data layer, it shows 3 channels instead of 1. (The depth image should have only 1 channel or am I wrong?)
Also, when using the concat layer and concatenating the rgb and the depth layer I get 101 Test scores instead of 2.
So I wanted to know whether the following is the correct way to concat 2 data layers channel wise:-
name: "CaffeNet"
layers {
name: "data1"
type: DATA
top: "data1"
top: "label1"
data_param {
source: "rgb_train1_leveldb"
mean_file: "../../data/rgbd/rgb_mean1.binaryproto"
batch_size: 100
crop_size: 144
mirror: true
}
}
layers {
name: "data2"
type: DATA
top: "data2"
top: "label2"
data_param {
source: "depth_train1_leveldb"
mean_file: "../../data/rgbd/depth_mean1.binaryproto"
batch_size: 100
crop_size: 144
mirror: true
}
}
layers {
name: "rgbd"
type: CONCAT
concat_param {
concat_dim: 1
}
bottom: "data1"
bottom: "data2"
top: "rgbd"
}
layers {
name: "conv1"
type: CONVOLUTION
bottom: "rgbd"
top: "conv1"
and so on and finally in the softmax loss layer in the training file (and the accuracy layer in the test file), I use label1 (label1 and label2 are the same obviously).
Thanks,
Arjun