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

标签: caffe  mdb_status == 0
10人阅读 评论(0) 收藏 举报
分类:
  • 错误提示:Check failed: mdb_status == 0 (2 vs. 0) No such file or directory,创建数据层mnist是找不到mdb文件
I0417 13:28:17.764714 35030 layer_factory.hpp:77] Creating layer mnist
F0417 13:28:17.765067 35030 db_lmdb.hpp:15] Check failed: mdb_status == 0 (2 vs. 0) No such file or directory
*** Check failure stack trace: ***
    @     0x7f8be82acd3d  google::LogMessage::Fail()
    @     0x7f8be82aeb53  google::LogMessage::SendToLog()
    @     0x7f8be82ac8cb  google::LogMessage::Flush()
    @     0x7f8be82af53e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f8be88df8e8  caffe::db::LMDB::Open()
    @     0x7f8be898643f  caffe::DataLayer<>::DataLayer()
    @     0x7f8be89865d2  caffe::Creator_DataLayer<>()
    @     0x7f8be8a66209  caffe::Net<>::Init()
    @     0x7f8be8a6959a  caffe::Net<>::Net()
    @           0x40c404  time()
    @           0x407440  main
    @     0x7f8be7564830  __libc_start_main
    @           0x407d89  _start
  • 解决办法
cd $CAFFE_ROOT
./data/mnist/get_mnist.sh
./examples/mnist/create_mnist.sh

After running the script there should be two datasets,mnist_train_lmdb, and mnist_test_lmdb.


Data Layers

Data enters Caffe through data layers: they lie at the bottom of nets. Data can come from efficient databases (LevelDB or LMDB), directly from memory, or, when efficiency is not critical, from files on disk in HDF5 or common image formats.

Common input preprocessing (mean subtraction, scaling, random cropping, and mirroring) is available by specifying TransformationParameters by some of the layers. The bias, scale, and crop layers can be helpful with transforming the inputs, when TransformationParameter isn’t available.

Layers:

  • Image Data - read raw images.
  • Database - read data from LEVELDB or LMDB.
  • HDF5 Input - read HDF5 data, allows data of arbitrary dimensions.
  • HDF5 Output - write data as HDF5.
  • Input - typically used for networks that are being deployed.
  • Window Data - read window data file.
  • Memory Data - read data directly from memory.
  • Dummy Data - for static data and debugging.

Note that the Python Layer can be useful for create custom data layers.

查看评论

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

ssd执行create_data python代码时,出现 Check failed: mdb_status == 0 (2 vs. 0) No such file or directory ...
  • Jdk_yxs
  • Jdk_yxs
  • 2018-01-11 11:47:25
  • 174

check failed:mdb_status==0(2vs.0)No such file or directiry

最近在做faceboxes,在训练的时候遇到了 check failed:mdb_status==0(2vs.0)No such file or directiry 经过一通瞎jb鼓捣,才发现: 仔...
  • wangduyang
  • wangduyang
  • 2017-11-06 17:26:11
  • 1691

Caffe-那些痛的记忆(持续更新)

Caffe-那些痛的记忆
  • sunpeng19960715
  • sunpeng19960715
  • 2017-02-04 15:23:50
  • 2921

Caffe 训练遇到的问题

(1)caffe 图片预处理时,执行compute_image_mean.exe遇到问题:  file to open leveldb trainldb does not exist 路径正确,原因...
  • my_secret_name
  • my_secret_name
  • 2017-05-11 14:14:40
  • 968

caffe 训练自己的数据集—调试技巧篇

调试caffe,用已有的网络训练自己的数据集的时候(我这里做的是二分类)。在生成均值文件之后,开始train,发现出现了这个问题。 1,路径正确,却读不到图片。 [db_lmdb.hpp:1...
  • dongfang1984
  • dongfang1984
  • 2016-11-21 14:42:22
  • 10104

db_lmdb.hpp:15] Check failed: mdb_status

db_lmdb.hpp:15] Check failed: mdb_status == 0 (-30796 vs. 0) MDB_CORRUPTED: 小小记录,在生成lmdb数据的时候出现了上面的...
  • u012308979
  • u012308979
  • 2017-05-28 14:53:35
  • 1849

caffe训练自己的数据时的错误

root@wzy-ubuntu:/home/wzy/caffe-master# sh examples/wzy/create_meanfile.sh F0821 16:03:04.561220 17...
  • wuzuyu365
  • wuzuyu365
  • 2017-08-21 16:11:28
  • 702

生成均值文件时提示错误: Check failed: mdb_status == 0 (2 vs. 0) No such file or directory

生成均值文件时提示错误:  Check failed: mdb_status == 0 (2 vs. 0) No such file or directory小编出现这个错误是由于生成均值的文件中变量...
  • miao0967020148
  • miao0967020148
  • 2018-04-11 08:48:26
  • 25

[caffe][db_lmdb.hpp:15] Check failed: mdb_status == 0 (3 vs. 0) 系统找不到指定的路径。

深度学习交流QQ群:116270156 原因是LMDB文件位置没写对,仔细检查一下。...
  • sinat_24143931
  • sinat_24143931
  • 2017-12-05 08:57:38
  • 231

在caffe-windows下跑自己的数据集leveldb格式 或者lmdb

文介绍如何使用caffe对自己的图像数据进行分类。 1 图片数据库准备 由于图片数据收集比较费时,实验室数据库分为5类,1 2 3 4 5类,train150张,val256张。 注意:图片要进行...
  • uncle_ll
  • uncle_ll
  • 2017-01-11 09:06:32
  • 2527
    个人资料
    持之以恒
    等级:
    访问量: 15万+
    积分: 2670
    排名: 1万+
    最新评论