huggingface / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.
https://huggingface.co/docs/diffusers
Apache License 2.0
26.08k stars 5.37k forks source link

How to download config.json if it is not in the root directory. #5055

Closed suzukimain closed 1 year ago

suzukimain commented 1 year ago

Is there any way to download vae for a model where config.json is not in the root directory?

vae = AutoencoderKL.from_pretrained("redstonehero/kl-f8-anime2")

For example, as shown above, there is no problem if config.json exists in the root directory, but if it does not exist, an error will occur.

vae = AutoencoderKL.from_pretrained("hakurei/waifu-diffusion")

I would be glad to get your advice.

shauray8 commented 1 year ago

Hi, @suzukimain you can use subfolder="vae". I would recommend you take advantage of the forum as these questions are better answered in the forum.

suzukimain commented 1 year ago

Resolved. Thanks for the advice.