How to convert label to lmdb in caffe?

276 views
Skip to first unread message

Zhenhua Chen

unread,
Feb 5, 2016, 7:01:54 AM2/5/16
to Caffe Users
Hi,
I was trying to convert label to lmdb(I didn't use convert_imageset, because I want to use images and labels separately), but I met the following error:
F0205 06:47:32.381954 22083 data_transformer.cpp:465] Check failed: datum_channels > 0 (0 vs. 0)
*** Check failure stack trace: ***
    @     0x7f576aee2e6d  (unknown)
    @     0x7f576aee4ced  (unknown)
    @     0x7f576aee2a5c  (unknown)
    @     0x7f576aee563e  (unknown)
    @     0x7f5770cd65a2  caffe::DataTransformer<>::InferBlobShape()
    @     0x7f5770d1150f  caffe::DataLayer<>::DataLayerSetUp()
    @     0x7f5770d68753  caffe::BasePrefetchingDataLayer<>::LayerSetUp()
    @     0x7f5770ddfea5  caffe::Net<>::Init()
    @     0x7f5770de0f65  caffe::Net<>::Net()
    @     0x7f5770e229aa  caffe::Solver<>::InitTrainNet()
    @     0x7f5770e23abc  caffe::Solver<>::Init()
    @     0x7f5770e23dc9  caffe::Solver<>::Solver()
    @     0x7f5770dbfc33  caffe::Creator_SGDSolver<>()
    @           0x40eb1e  caffe::SolverRegistry<>::CreateSolver()
    @           0x407d9b  train()
    @           0x405c61  main
    @     0x7f5766bf0b15  __libc_start_main
    @           0x406371  (unknown)
Aborted

Could anybody tell me why this error occurs and what should I do?

Paritosh Mittal

unread,
Apr 4, 2016, 10:15:06 AM4/4/16
to Caffe Users
Could you share the code that you wrote for the same?

Ezequiel Torti López

unread,
May 4, 2016, 10:22:18 AM5/4/16
to Caffe Users
Hello Zhenhua, could you solve the problem? I am facing the same exact problem when trying to create a labels lmdb in C++.

Thanks
Reply all
Reply to author
Forward
Message has been deleted
0 new messages