imatge-upc / rvos

RVOS: End-to-End Recurrent Network for Video Object Segmentation (CVPR 2019)
https://imatge-upc.github.io/rvos/
Other
277 stars 54 forks source link

lmdb.Error: xxx/lmdb_seq: Function not implemented #5

Closed dwqy11 closed 5 years ago

dwqy11 commented 5 years ago

Hi, when I run ' python dataset_lmdb_generator.py -dataset=youtube ', I encountered the following error(when dataset is DAVIS2017, the same error showed up as well.) How can I fix it?

Traceback (most recent call last): File "dataset_lmdb_generator.py", line 38, in <module> frame_lmdb_generator_sequences.generate_lmdb_file(cfg.PATH.DATA, cfg.PATH.SEQUENCES_TRAIN) File "dataset_lmdb_generator.py", line 16, in generate_lmdb_file env = lmdb.open(os.path.join(root_dir, 'lmdb_' + self.gen_type)) lmdb.Error: /userhome/rvos/databases/YouTubeVOS/lmdb_seq: Function not implemented

carlesventura commented 5 years ago

Hi, I think that the problem is that you have the databases folder inside the rvos folder, but they shoud be in the same directory level. In other words, you should have the databases folder in /userhome/databases/ since you have rvos in /userhome/rvos/.

dwqy11 commented 5 years ago

Thanks! I‘ve fixed it. Actually I had the databases folder in /userhome with rvos folder in the same level. However I found that the data folder structure must like the following: /userhome/databases/YouTubeVOS/train/JPEGImages And then the error is gone.

In a word, this error should be resulted by "cannot find the data files".