# No npy files after extracting lmdb using vilbert configuration

**URL:** <https://community.drivendata.org/t/no-npy-files-after-extracting-lmdb-using-vilbert-configuration/4688>\
**Category:** Hateful Memes\
**Created:** [June 25, 2020, 3:35pm UTC](https://community.drivendata.org/t/no-npy-files-after-extracting-lmdb-using-vilbert-configuration/4688 "2020-06-25T15:35:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaishengyao](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kaishengyao](https://community.drivendata.org/u/kaishengyao)\
**Post date:** [June 25, 2020, 3:35pm UTC](https://community.drivendata.org/t/no-npy-files-after-extracting-lmdb-using-vilbert-configuration/4688/1 "2020-06-25T15:35:31Z")

</div>

After unpacking with lmdb feature, there are two files shown under the following directory  
datasets/hateful\_memes/defaults/features/detectron.lmdb  
14664257536 May 6 12:29 data.mdb  
8192 May 6 12:29 lock.mdb

However, the feature reader expects individual files to be read in its  
def get(self, item) function  
in antmmf/datasets/database/features\_database.py  
e.g., its item input is  
item = {‘id’: 14238, ‘img’: ‘img/14238.png’, ‘label’: 0, ‘text’: ‘most religions are religions of peace’, ‘feature\_path’: ‘14238.npy’}  
but there is no npy files

---

<div class="post-metadata">

**Author:** ![preet\_t](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@preet\_t](https://community.drivendata.org/u/preet_t)\
**Post date:** [March 12, 2021, 12:37pm UTC](https://community.drivendata.org/t/no-npy-files-after-extracting-lmdb-using-vilbert-configuration/4688/2 "2021-03-12T12:37:33Z")

</div>

This file helps to generate npy files: [https://github.com/Muennighoff/vilio/blob/master/fts\_lmdb/lmdb\_conversion.py](https://github.com/Muennighoff/vilio/blob/master/fts_lmdb/lmdb_conversion.py)
