phizaz / diffae

Official implementation of Diffusion Autoencoders
https://diff-ae.github.io/
MIT License
805 stars 120 forks source link

I got the issue about lmdb: lmdb.Error: ffhq256.lmdb: No such file or directory #70

Open Johnx69 opened 7 months ago

Johnx69 commented 7 months ago

I have downloaded the dataset from google drive and put it into the datasets folder. However, I got this error. Could you help me to fix it?

Screenshot 2023-11-25 at 00 01 07

phizaz commented 7 months ago

What's the error? Did you forget to upload it?

Johnx69 commented 7 months ago

I upload it and put it into the datasets folders. But I do not know what happend with the lmdb library. I even tried to download the dataset in a separate folder and tried to load it.

Screenshot 2023-11-25 at 17 07 15

I used this code to load the data

Screenshot 2023-11-25 at 17 08 52

But I got this error.

Screenshot 2023-11-25 at 17 08 42

Johnx69 commented 7 months ago

I downloaded the ffhq256.lmdb from the google drive folder

Johnx69 commented 7 months ago

I got the same error when running your code. In experiment.py

Screenshot 2023-11-25 at 17 12 16

Screenshot 2023-11-25 at 17 13 36

Screenshot 2023-11-25 at 17 13 50

phizaz commented 7 months ago

I'm not familiar with the error at all. I don't see anything wrong with your setting. Judging from the fact that I haven't seen anyone having this error before I would guess that this error is specific to your case, sadly I do not have the bandwidth to replicate this error for you.

ozturkoktay commented 4 months ago

The folder and the data exist but I'm getting the same error. Any thoughts @phizaz ?

ozturkoktay commented 4 months ago

I figured out the issue. The reason for this name of the file in the ffhq.lmdb folder.

The name of the data and lock files should be exactly data.mdb and lock.mdb.