fix parameter for transformation in ImageDataLayer constructor
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 22 Aug 2014 07:02:17 +0000 (00:02 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 22 Aug 2014 07:06:31 +0000 (00:06 -0700)
include/caffe/data_layers.hpp

index bc29429..f972965 100644 (file)
@@ -179,7 +179,7 @@ class ImageDataLayer : public Layer<Dtype>, public InternalThread {
  public:
   explicit ImageDataLayer(const LayerParameter& param)
       : Layer<Dtype>(param),
-        data_transformer_(param.data_param().transform_param()) {}
+        data_transformer_(param.image_data_param().transform_param()) {}
   virtual ~ImageDataLayer();
   virtual void LayerSetUp(const vector<Blob<Dtype>*>& bottom,
       vector<Blob<Dtype>*>* top);