caffe-yolo
caffe-yolo copied to clipboard
Error while running convert script
I got the following error while running the convert script:
./convert.sh I0411 21:43:24.670166 5449 convert_box_data.cpp:99] Shuffling data I0411 21:43:24.670377 5449 convert_box_data.cpp:102] A total of 0 images. F0411 21:43:24.670413 5449 db_lmdb.cpp:13] Check failed: mkdir(source.c_str(), 0744) == 0 (-1 vs. 0) mkdir ../../data/yolo/trainval.txt failed *** Check failure stack trace: *** @ 0x7f6b8c3d05cd google::LogMessage::Fail() @ 0x7f6b8c3d2433 google::LogMessage::SendToLog() @ 0x7f6b8c3d015b google::LogMessage::Flush() @ 0x7f6b8c3d2e1e google::LogMessageFatal::~LogMessageFatal() @ 0x7f6b8c7eff80 caffe::db::LMDB::Open() @ 0x4043dd main @ 0x7f6b8b341830 __libc_start_main @ 0x4055c9 _start @ (nil) (unknown) Aborted (core dumped)
I deleted the file "trainval.txt" and just by then it worked and created a directory under the name of "trainval.txt" !! This is strange, have I did something wrong?
It is strange. I've found similar problem when creating LMDB.
But even though the created lmdb is empty, my mistake because the directory of the training set was wrong in my case, so I fixed it then it went fine, Just double check the configuration for the convert file
Problem solved... It seems "mkdir" (as a C function) cannot automatically create multiple layers of directories. @yeahkun See if you can fix this problem.
I've found solution on Issue #6 .Please close this issue @yeahkun .
I think @AurusHuang is right Problem solved... The command line is ./build/tools/convert_imageset kodak_noisy/image/ kodak_noisy/kodak_noisy.txt ./lmdb