Kosinkadink / ComfyUI-AnimateDiff-Evolved

Improved AnimateDiff for ComfyUI and Advanced Sampling Support
Apache License 2.0
2.64k stars 196 forks source link

Fix Lora Hooks for latest ComfyUI versions #403

Closed Kosinkadink closed 3 months ago

Kosinkadink commented 3 months ago

ComfyUI patching got updated to support offset weights, so I needed to update my code to match that. Backwards compatible with old versions of ComfyUI, as the offset parameter is just an extra item on the patch tuple.

Also took the chance to make ModelPatcherCLIPHooks use HookRef in its hooked_patches dict instead of LoraHook just like ModelPatcherAndInjector.