jiasenlu / vilbert_beta

473 stars 96 forks source link

VCR Visual Feature data cannot open: lmdb.InvalidError: ./VCR_gt_resnet101_faster_rcnn_genome.lmdb: MDB_INVALID: File is not an LMDB file #75

Open GoGoJoestar opened 2 years ago

GoGoJoestar commented 2 years ago

I am working on VCR task and need to use the visual extracted feature. I download the lmdb data for VCR from the dropbox: VCR_gt_resnet101_faster_rcnn_genome.lmdb and VCR_resnet101_faster_rcnn_genome.lmdb and other files. But when I open them with lmdb.open(), I got the error: lmdb.InvalidError: ./VCR_gt_resnet101_faster_rcnn_genome.lmdb: MDB_INVALID: File is not an LMDB file.

Could anyone help? Did the data file I downloaded is broken? or any other reason?

Here is the code I use to open the lmdb file:

path = "./VCR_gt_resnet101_faster_rcnn_genome.lmdb"
env = lmdb.open(path, map_size=int(1e13), max_readers=1, readonly=True, lock=False, readahead=False, meminit=False)

and here is my dir structure: 屏幕截图(23)