Check failed: mdb_status == 0 (2 vs. 0) No such file or directory

瘦欲@ 提交于 2019-12-01 23:18:38

You have not set your paths to the LMDB directories correctly. Go to the directory where you have created your LMDBs and get the absolute paths using this command:

$ readlink -f <LMDB_directory_name>

Use this path, it should solve your problem.

To expand on Harsh's answer:

Make sure you carefully read the set-up steps on the Caffe Imagenet page. Some of the steps you have to carry out are embedded within the text; not all of them are in code boxes.

Specific to this case, you have to edit file examples/imagenet/create_imagenet.sh, replacing the path/to references with the correct path in your environment: this is wherever the imagenet files live. Lines 9&10 need your attention:

TRAIN_DATA_ROOT=/path/to/imagenet/train/
VAL_DATA_ROOT=/path/to/imagenet/val/

Also, at line 5, make sure that your EXAMPLE variable is set to a location with enough space for the compressed images: train requires 41Gb, but the pre-processing high-water mark is at least 55Gb. test occupies only 1.7Gb.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!