(self,path,dtype=np.uint8)
| 4 | |
| 5 | class Read_Caffe_LMDB(): |
| 6 | def __init__(self,path,dtype=np.uint8): |
| 7 | |
| 8 | self.env=lmdb.open(path, readonly=True) |
| 9 | self.dtype=dtype |
| 10 | self.txn=self.env.begin() |
| 11 | self.cursor=self.txn.cursor() |
| 12 | |
| 13 | @staticmethod |
| 14 | def to_numpy(value,dtype=np.uint8): |