Dimenstionality of the HDF5 layer!

26 views
Skip to first unread message

Saeed Izadi

unread,
Oct 6, 2015, 12:22:06 PM10/6/15
to Caffe Users
I'm trying to feed my own data to caffe using an HDF5 layer. I have prepared my own data following this format: [height width channel N] and [1 N] for labels (as recommended by sample code provided by MATLAB wrapper). But when I try to train the model I face the the error:

F1006 19:41:19.337057 10009 hdf5_data_layer.cpp:54] Check failed: hdf_blobs_[i]->shape(0) == num (29999 vs. 15000)
*** Check failure stack trace: ***
    @     0x7f1019161daa  (unknown)
    @     0x7f1019161ce4  (unknown)
    @     0x7f10191616e6  (unknown)
    @     0x7f1019164687  (unknown)
    @     0x7f1019574226  caffe::HDF5DataLayer<>::LoadHDF5FileData()
    @     0x7f1019572aa8  caffe::HDF5DataLayer<>::LayerSetUp()
    @     0x7f10194f6f9d  caffe::Net<>::Init()
    @     0x7f10194f7fd5  caffe::Net<>::Net()
    @     0x7f10194d882a  caffe::Solver<>::InitTrainNet()
    @     0x7f10194d982c  caffe::Solver<>::Init()
    @     0x7f10194d9b39  caffe::Solver<>::Solver()
    @           0x40fd55  caffe::GetSolver<>()
    @           0x408a96  train()
    @           0x406991  main
    @     0x7f1017ec2ec5  (unknown)
    @           0x40712b  (unknown)
    @              (nil)  (unknown)
Aborted (core dumped)

It is taking a long time of me. Any help would be appreciated.

Reply all
Reply to author
Forward
0 new messages