invoke-ai / InvokeAI

InvokeAI is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, supports terminal use through a CLI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.07k stars 2.39k forks source link

[enhancement]: Render with controlnet models that contain diffusers keys #6533

Open lstein opened 3 months ago

lstein commented 3 months ago

Is there an existing issue for this?

Contact Details

No response

What should this feature add?

@RyanJDick encountered a controlnet model which looks like a single-file .safetensors file, but turns out to have the contents of a diffusers-style diffusion_pytorch_model.safetensors file. Invoke thinks it is a single-file, tries to load it, and crashes.

Here is the example: https://civitai.com/models/330313/ttplanetsdxlcontrolnettilerealistic?modelVersionId=444122

If we encounter more of these, I will put in a special case in the installer to massage it back into proper format.

Alternatives

No response

Additional Content

No response