arenasys / stable-diffusion-webui-model-toolkit

A Multipurpose toolkit for managing, editing and creating models.
MIT License
508 stars 34 forks source link

DRM is here: Model makers are starting to add extra IDs and corrupt CLIP on purpose #43

Open CustodialMatter opened 7 months ago

CustodialMatter commented 7 months ago

Model creators are now intentionally added keys that prevent making modifications to the model

Extra keys Intentionally bad clip keys

I get that this is a cheap way to prevent redundant model merges and are fed up with not being credited, and I'm totally for that, but I need these files in diffusers format for work and it's breaking the converter

Here's the workaround so far: https://github.com/szhublox/ambw_comfyui/issues/4 https://gist.github.com/rvkwi/2df007fa3d6249474e18a7aa47d42507

Would be cool to see these fixes incorporated into Toolkit for the rest of us

J-Cott commented 4 months ago

Do you think the error: "argument 'metadata': 'dict' object cannot be converted to 'PyString'" is the same issues? I get it when trying to merge Checkpoints as .safetensor, but only a certain few checkpoints, the rest work fine.

J-Cott commented 4 months ago

If anyone else is having this issue, you can fix it with this Automatic 1111 Extension: https://github.com/Akegarasu/sd-webui-model-converter