CompVis / latent-diffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
11.62k stars 1.51k forks source link

training LDMs on the LSUN- : FileNotFoundError: [Errno 2] No such file or directory: 'data/lsun/churches/c11ef56b368fec4c3e35532a7c750a0a1941f912.webp' #190

Open GxjGit opened 1 year ago

GxjGit commented 1 year ago

I prepared my data following README: image

Whe I export churches_lmdb to churches by cmd:

python3 data.py export churches_lmdb --out_dir churches

The directory structure like this: image

but the meta list is just only show the filename of the images: image

I checked the code like

image

image

In this way, the file name and rootpath are directly spliced ​​together, and the intermediate directory has not been considered.

1999kevin commented 1 year ago

python3 data.py export churches_lmdb --out_dir churches --flat

TorAP commented 11 months ago

Hello @1999kevin,

When I follow the docs for download (on https://github.com/fyu/lsun) I am left with some .zip files, when I unzip those I can extract the files and get them in the .webp extension. However, I dont have any summation/meta data on the specific dataset. I.e., I get this FileNotFoundError: [Errno 2] No such file or directory: 'data/lsun/church_outdoor_train.txt. How do I get the church_outdoor_train.txt?

Jungwon-Lee commented 11 months ago

@TorAP I could get the meta data from ls -1 data/lsun/church > data/lsun/church_outdoor_train.txt

TorAP commented 11 months ago

Yes, I did the same. :)

yinpub commented 7 months ago

Yes, I did the same. :)

here https://ommer-lab.com/files/lsun.zip You can find the link in the readme.