error when loading custom VAE from safetensors file #379
Labels
model/diffusion
scope/convert
status/fixed
issues that have been fixed and released
type/bug
broken features
Milestone
When converting a model that uses a custom VAE, and the
vae
key is set to a local file rather than a HF repo, it fails with:The error is technically correct, the
safetensors
file is not a JSON file. For some reason,AutoencoderKL.from_pretrained
is now looking for a config at the same filename/path, which does not exist and causes the error. I'm not sure how this worked before, but it must have been loading a VAE config from the working Torch model or something.The text was updated successfully, but these errors were encountered: