I managed to write numpy arrays to lmdb, howewer solution is far from perfection, but actually my X
is just jpg image, so my question is how to directly write jpeg file to lmdb?
Seems like pycaffe
doing similar thing but it use caffe specific Datum
and I need some general solution without dependencies.
Here is example that write image as numpy array and directly as encoded jpg.
As we can see store jpg directly is more efficient in terms of storage.