caffe icon indicating copy to clipboard operation
caffe copied to clipboard

how to do classification base on the pre-defined feature vectors?

Open liguanbin opened this issue 12 years ago • 2 comments

hi, I have generated my own feature vectors, can i input these to caffe and let caffe help to do classification. I see all the input data of the given examples are the raw image pixels. I think I do not need to define the batch_size and the crop_size since the feature vectors are not a raw image, is that ok?

liguanbin avatar Jul 03 '14 06:07 liguanbin

The HDF5DataLayer is designed for custom input data of whatever dimensionality (up to 4D). Vectors and matrices are totally fine. This turns Caffe into a fast GPU SGD optimizer for classification, regression, and so on.

https://github.com/BVLC/caffe/blob/master/src/caffe/layers/hdf5_data_layer.cpp

@sergeyk if you have a chance to give an example for your data layer it seems there's plenty of interest.

shelhamer avatar Jul 14 '14 10:07 shelhamer

Will be resolved by #691

sergeyk avatar Jul 14 '14 16:07 sergeyk