Questions tagged [lmdb]

It is the mmap’d database for OpenLDAP aka Lightning MDB (LMDB).

It is the mmap’d database for OpenLDAP aka Lightning MDB (LMDB).

254 questions
0
votes
3 answers

Trait is not implemented for the type `&A` when passing an array of pairs to a function

I am trying to write the function set which calls the Rust LMDB library (docs), and an example I'm working off of. I can't for the life of me get this to work. Here is my current attempt: fn main() { let env = getenv("duperdb"); let dbhandle…
o_o_o--
  • 975
  • 9
  • 20
0
votes
1 answer

LMDB Cursor going chronologically instead of alphabetically - Node.JS Plugin

I'm using the following Node.JS Plugin that allows you to use a LMDB in a Node app: https://github.com/Venemo/node-lmdb As you can see, you can use cursors here but when I go through the cursor I get the results ordered by key and I want to get them…
Yind
  • 335
  • 3
  • 17
0
votes
1 answer

Java: reading all keys from lmdb JNI into array

I want to read all the keys from lmdb into a list, using bufferCursor, but I am getting index out of bound error. String[] keys=new String[keyCount]; //keyCount gives no. of keys in lmdb tree int count=0; cursor.first(); //to move to first…
xrs
  • 144
  • 11
0
votes
1 answer

can't get access to python lmdb , ' object has no attribute 'Environment''

I am using lmdb python to load the data def create_dataset(): img_db_fn = 'data/image_train.lmdb' img_env = lmdb.Environment(img_db_fn, map_size=1099511627776) img_txn = img_env.begin(write=True, buffers=True) keys =…
user824624
  • 7,077
  • 27
  • 106
  • 183
0
votes
1 answer

LMDB Seek (move the cursor) without read

I would like to know whether it is possible to move the cursor forward for, say, n positions without retrieving data at the same time (i.e. lowering i/o load). I am aware of mdb_cursor_get but it seems to retrieve the data from disk at each call in…
Jan
  • 1,180
  • 13
  • 29
0
votes
1 answer

How to set MDB_NOTLS mode in python lmdb

In lmdb docs: "MDB_NOTLS mode is used exclusively, which allows read transactions to freely migrate across threads and for a single thread to maintain multiple read transactions. This enables mostly care-free use of read transactions, for example…
user3003873
  • 543
  • 1
  • 4
  • 21
0
votes
1 answer

Error while installing deepdish

I'm trying to create an LMDB database file to be used with Caffe according to this tutorial on an Ubuntu 14.04 machine using Anaconda Python 2.7.9. However, when I do pip install deepdish, I'm getting the following error: Collecting deepdish Using…
Dr. Prasanna Date
  • 745
  • 1
  • 9
  • 29
-1
votes
1 answer

Unable to find lmdb while installing caffe with make all

/usr/bin/ld: cannot find -lmdb collect2: error: ld returned 1 exit status Makefile:568: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1 How to get rid of this problem.
-1
votes
1 answer

Generate big ( ~300MB) LMDB file

I am generating a huge LMDB file close to 300 MB and it takes hours in Golang. Is there a way to generate it within minutes? I am open to use any other language.
Suresh Prasad
  • 73
  • 1
  • 5
-1
votes
2 answers

extract features to a text file

Following the steps in http://caffe.berkeleyvision.org/gathered/examples/feature_extraction.html to extract feature from new images after training, you end up getting a data.mdb file. I would much prefer to write features to a txt file so I can…
ytrewq
  • 3,670
  • 9
  • 42
  • 71
-1
votes
1 answer

Error creating LMDB database file in MATLAB for Caffe

I am trying to convert a dataset of images to LMDB format for use with Caffe, and I need to call the convert_imageset function for applying this conversion from inside Matlab. I am using Linux, and I have created a shell (.sh) script with the needed…
-2
votes
1 answer

There is a Permission problem when I run create_data.sh

enter image description here /home/cow/VOC2007/trainval.txt: line 7902: VOC2007/JPEGImages/00149_00029.jpg: Permission denied my creat_data.sh : cur_dir=$(cd $( dirname ${BASH_SOURCE[0]} ) && pwd ) root_dir="$HOME/caffe" cd…
Charley
  • 1
  • 2
-3
votes
2 answers

retrieving data from lmdb in python is throwing error

This is how the dataset was created def createDataset1( outputPath, imagePathList, labelList, lexiconList=None, validset_percent=10, testset_percent=0, random_seed=1111, checkValid=True, ): """ Create LMDB dataset for…
e.iluf
  • 1,389
  • 5
  • 27
  • 69
-3
votes
1 answer

How can I get an image from LMDB in Python?

How can I get an image from LMDB in Python? And what is the data type of that result? Would that data type match the function open('xx.jpg').read()? My purpose is to read an image from LMDB, and then match my code (that code is written for the data…
1 2 3
16
17