CompVis / latent-diffusion

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

data preparation #245

Closed SaiyueLyu closed 1 year ago

SaiyueLyu commented 1 year ago

What is the correct data format for celebahq and LSUN?

I have celebahq in jpg format, how do I obtain the required .npy format as shown FileNotFoundError: [Errno 2] No such file or directory: 'data/celebahq/imgHQ05953.npy'

And is there any other method to prepare LSUN, the original LSUN repo takes too long to run and stopped in the middle sometimes.

And also the downloaded data is in lmdb format, how can I obtain the webp format as shown FileNotFoundError: [Errno 2] No such file or directory: 'data/lsun/churches/c11ef56b368fec4c3e35532a7c750a0a1941f912.webp'

Any help would be appreciate!

dydxdt commented 1 year ago

I also have this problem. Can you share how to prepare the .npy and LSUN data? Thank you very much!