latent-diffusion icon indicating copy to clipboard operation
latent-diffusion copied to clipboard

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

Open GxjGit opened this issue 2 years ago • 5 comments

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.

GxjGit avatar Nov 22 '22 02:11 GxjGit

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

1999kevin avatar Jan 10 '23 10:01 1999kevin

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?

TorAP avatar Oct 16 '23 14:10 TorAP

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

Jungwon-Lee avatar Oct 28 '23 12:10 Jungwon-Lee

Yes, I did the same. :)

TorAP avatar Oct 28 '23 14:10 TorAP

Yes, I did the same. :)

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

yinpub avatar Mar 11 '24 03:03 yinpub