unable to create imagenet on window CPU

1,214 views
Skip to first unread message

waheed abro

unread,
Apr 5, 2015, 9:51:39 AM4/5/15
to caffe...@googlegroups.com
unable to create imagenet on window CPU

$ examples/imagenet/create_imagenet.sh
Creating val lmdb...  build/tools
*** Check failure stack trace: ***
I0405 14:46:07.242023  5492 convert_imageset.cpp:83] Shuffling data
E0405 14:46:07.242023  5492 common.cpp:98] Cannot create Cublas handle. Cublas won't be available.
E0405 14:46:07.242023  5492 common.cpp:105] Cannot create Curand generator. Curand won't be available.
I0405 14:46:07.242023  5492 common.cpp:21] System entropy source not available, using fallback algorithm to generate seed instead.
I0405 14:46:07.242023  5492 convert_imageset.cpp:86] A total of 0 images.
F0405 14:46:07.243023  5492 db.cpp:30] Check failed: _mkdir(source.c_str()) == 0 (-1 vs. 0) mkdir data/ilsvrc12/val.txtfailed
Done.


Nikiforos Pittaras

unread,
Apr 6, 2015, 4:34:25 AM4/6/15
to caffe...@googlegroups.com
The output directory failed to be created  ( _mkdir(source.c_str()) == 0 (-1 vs. 0)  ).
Does it already exist?

waheed abro

unread,
Apr 6, 2015, 12:44:55 PM4/6/15
to caffe...@googlegroups.com
No output directory not exist. During compilation i have made one change i have commented below line because it was producing error ('mkdir': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir) on windows
// CHECK_EQ(mkdir(source.c_str(), 0744), 0) << "mkdir " << source << "failed";

So Instead of using mkdir i used.
CHECK_EQ(_mkdir(source.c_str()), 0) << "mkdir " << source << "failed";

Nikiforos Pittaras

unread,
Apr 7, 2015, 9:11:54 AM4/7/15
to caffe...@googlegroups.com
I did that too. If it compiled it should be fine.

Well the error is there. Either the dir. exists, or you don't have write permission, or anything else you can think of that is directory-making-failure related. :/
You can try to print the directory path just before that line to make sure the path supplied is the correct one, rebuild, and run it.

waheed abro

unread,
Apr 8, 2015, 12:19:07 PM4/8/15
to caffe...@googlegroups.com
Thanks Nikiforos Pittaras, I solved my problem, Problem was my output folder name contain space i used tab sequence to avoid but some how unable to create dir so renamed folder and removed space, it worked.
Reply all
Reply to author
Forward
0 new messages