zixaphir / Stable-Diffusion-Webui-Civitai-Helper

Stable Diffusion Webui Extension for Civitai, to manage your model much more easily.
175 stars 24 forks source link

SwarmUI's metadata updates directly modify the metadata record in the safetensors file, changing hash. Consider supporting AutoV3 hashes, which ignore the metadata record(s). #115

Open brendanhoar opened 2 days ago

brendanhoar commented 2 days ago

Have you read document?

Yes.

Describe Issue

SwarmUI (ex-StableSwarm) allows the user to update the metadata of model, but it stores the updates directly in the safetensors files. This breaks SHA256 and AutoV2 hashes, and for users who share models between applications, this may cause those users to lose the ability to pull new or updated metadata using your extension.

AutoV3 hashes, however, ignore the metadata and hash only the tensor information.

Civitai API's model hash endpoint has support for AutoV3 lookups, even though the official API docs don't include that yet.

Please consider adding support for the newer AutoV3 hash standard.

Thanks B