Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running convert script #20

Open
mohanadkaleia opened this issue Apr 12, 2017 · 6 comments
Open

Error while running convert script #20

mohanadkaleia opened this issue Apr 12, 2017 · 6 comments

Comments

@mohanadkaleia
Copy link

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
Copy link
Author

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?

@AurusHuang
Copy link

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

@mohanadkaleia
Copy link
Author

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

@AurusHuang
Copy link

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
Copy link

AurusHuang commented Apr 27, 2017

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

@shin1919
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants