deep3d icon indicating copy to clipboard operation
deep3d copied to clipboard

lmbd error, data/lmdb: No such file or directory

Open lasandcris opened this issue 8 years ago • 5 comments

Hi,

I'm trying to run convert_movie.py using a single jpg as an input file and the default params file, however, I get the above error. Has anyone had this problem before?

thanks laszlo

edit: I set my args such as (all my paths and files are correct):

python convert_movie.py C:\dev\mxnet\deep3d\param --ctx 0 --source C:\dev\mxnet\deep3d\image\someImage.jpg --output C:\dev\mxnet\deep3d\output\out.jpg

lasandcris avatar May 19 '16 16:05 lasandcris

I've managed to get a couple of steps further. It was to do with data.py on line 264, at which point lmdb was trying to write a folder for the db. On windows, if I remove the readOnly flag or set it to false, it will work. But of course you will run the chance of overwriting your previous db.

But now got stuck at line 278. self.idx = [int(i) for i in txn.get(source).split(',')] and get an error: NoneType object has no attribute split As if the list is empty. So, now I'm not sure if its picking up the params file at all.

lasandcris avatar May 20 '16 11:05 lasandcris

you need to make the database first

piiswrong avatar May 21 '16 20:05 piiswrong

@piiswrong , I thought that was what lmdb was trying to do - at line 39, convert_movie.py calls data.py which then makes an lmdb folder for the db on line 264. or is that not right? I also saw one variable that's being passed if source which by default is indexing test_idx. Where can I find that? is that available for download?

can you share how to create a database?

lasandcris avatar May 22 '16 14:05 lasandcris

@lasandcris Hi,

I am trying to run the code and I have errors in importing mxnet and creating my database seems you go further in this code could you help me

thanks

RadwanNada avatar Jun 14 '16 13:06 RadwanNada

@lasandcris Hi! I'm learning this program now. I also have the same problem of lmdb. Can you tell me how to solve it?Thanks.

liutianling avatar Jan 26 '18 09:01 liutianling