Skip to content
Pulkit edited this page May 10, 2016 · 2 revisions

#Dealing with LMDBs

import my_pycaffe_io as mpio
db = mpio.DbReader(dbName)

Reading all the keys

keys = db.get_key_all()

Read the value of a certain key

#By default we get a value and label as the output
val, label = db.read_key(key)

##Initialize multiple DBs