Why use 'MemoryDataLayer' output is different from using 'imageDataLayer'

10 views
Skip to first unread message

Su

unread,
Aug 23, 2017, 11:13:02 AM8/23/17
to Caffe Users
Between the prototxts,  only top data layer is difference,  but when I extract the feature of pictures (from same layer, same picture), the output is difference. As follows:
MemoryDataLayer Result:
0 0 3.82127 0 2.06292 0 0 0 0 0 0 0 2.43437 4.78357 0 0 0 0 0.211604 0 0 0 0 0 0 1.10624 0 0 0 0 0 .....
ImageDataLayer result
0 0 2.29276 0 1.23775 0 0 0.214584 0 0 5.27333 0 1.46062 2.87014 0 0 0 0 0.126962 0 13.2942 0 0 0 0 ......
Memory based prototxt:
layer {
   name: "data"
   type:"MemoryData"
   top: "data"
   top: "label"
   memory_data_param {
        batch_size: 1
        channels:3
        height: 224
        width: 224
    }
  transform_param {
    crop_size: 224
    mirror: false
  }
}
...
ImageDataLayer based prototxt:
  layer {
   name: "data"
   type: "ImageData"
   top: "data"
   top: "label"
   image_data_param {   
source:"/_temp/file_list"
batch_size: 1
new_height: 224 
new_width: 224
    }     
  }
                ...

1. I resize the picture when using memory data
2. result is different, and in some 
Reply all
Reply to author
Forward
0 new messages