1 #ifndef CAFFE_IMAGE_DATA_LAYER_HPP_
2 #define CAFFE_IMAGE_DATA_LAYER_HPP_
8 #include "caffe/blob.hpp"
9 #include "caffe/data_transformer.hpp"
10 #include "caffe/internal_thread.hpp"
11 #include "caffe/layer.hpp"
12 #include "caffe/layers/base_data_layer.hpp"
13 #include "caffe/proto/caffe.pb.h"
22 template <
typename Dtype>
28 virtual void DataLayerSetUp(
const vector<
Blob<Dtype>*>& bottom,
31 virtual inline const char*
type()
const {
return "ImageData"; }
36 shared_ptr<Caffe::RNG> prefetch_rng_;
37 virtual void ShuffleImages();
40 vector<std::pair<std::string, int> > lines_;
47 #endif // CAFFE_IMAGE_DATA_LAYER_HPP_
virtual const char * type() const
Returns the layer type.
Definition: image_data_layer.hpp:31
Definition: base_data_layer.hpp:47
virtual int ExactNumTopBlobs() const
Returns the exact number of top blobs required by the layer, or -1 if no exact number is required.
Definition: image_data_layer.hpp:33
virtual int ExactNumBottomBlobs() const
Returns the exact number of bottom blobs required by the layer, or -1 if no exact number is required.
Definition: image_data_layer.hpp:32
A wrapper around SyncedMemory holders serving as the basic computational unit through which Layers,...
Definition: blob.hpp:24
Provides data to the Net from image files.
Definition: image_data_layer.hpp:23
Definition: base_data_layer.hpp:54
A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14