file config.json missing

#1
by Clement - opened

hi,

thanks for this VAE.
On my machine , when trying to load the VAE I get the following error:
OSError: nubby/blessed-sdxl-vae-fp16-fix does not appear to have a file named config.json.

Could you please advise or make the config.json file available?

Thanks

Owner

These are currently not available in diffusers format which is what you're using. I'll convert the recommended version to diffusers when I'm back at my PC. If you like to try converting them yourself, it can be done using this script from the diffusers repo: https://github.com/huggingface/diffusers/blob/main/scripts/convert_vae_pt_to_diffusers.py

nubby changed discussion status to closed
nubby changed discussion status to open

thanks for the link to the VAE conversion script. However, when running python convert_vae_to_diffusers.py --vae_pt_path data/models/nubby-blessed-sdxl/sdxl_vae-fp16fix-blessed.safetensors --dump_path data/models/nubby-blessed-sdxl/ I get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/.../convert_vae_to_diffusers.py", line 159, in <module>
    vae_pt_to_vae_diffuser(args.vae_pt_path, args.dump_path)
  File "/home/ubuntu/.../convert_vae_to_diffusers.py", line 143, in vae_pt_to_vae_diffuser
    vae_config = create_vae_diffusers_config(original_config, image_size=image_size)
  File "/home/ubuntu/anaconda3/envs/upscale_v2/lib/python3.10/site-packages/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py", line 343, in create_vae_diffusers_config
    vae_params = original_config.model.params.first_stage_config.params.ddconfig
AttributeError: 'dict' object has no attribute 'model'```
Owner

I'm not sure what the problem was when you tried to run the script. It ran without errors on my machine. I've uploaded the diffusers weights for the sdxl_vae-fp16fix-blessed.safetensors file here: https://huggingface.co/nubby/blessed-sdxl-vae-fp16-fix/tree/main/vae

When you have a chance to test it will you please confirm that it works correctly for you? I don't use diffusers so I didn't have a way to easily test it.

It works
thank you

Clement changed discussion status to closed
Owner

Happy to help. Thanks for confirming.

Sign up or log in to comment