caffe-yolo icon indicating copy to clipboard operation
caffe-yolo copied to clipboard

Error while running convert script

Open mohanadkaleia opened this issue 7 years ago • 6 comments

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)

mohanadkaleia avatar Apr 12 '17 02:04 mohanadkaleia

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?

mohanadkaleia avatar Apr 12 '17 23:04 mohanadkaleia

It is strange. I've found similar problem when creating LMDB.

AurusHuang avatar Apr 26 '17 09:04 AurusHuang

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

mohanadkaleia avatar Apr 26 '17 14:04 mohanadkaleia

Problem solved... It seems "mkdir" (as a C function) cannot automatically create multiple layers of directories. @yeahkun See if you can fix this problem.

AurusHuang avatar Apr 27 '17 01:04 AurusHuang

I've found solution on Issue #6 .Please close this issue @yeahkun .

AurusHuang avatar Apr 27 '17 03:04 AurusHuang

I think @AurusHuang is right Problem solved... The command line is ./build/tools/convert_imageset kodak_noisy/image/ kodak_noisy/kodak_noisy.txt ./lmdb

shin1919 avatar Nov 16 '18 07:11 shin1919