Kosinkadink / ComfyUI-AnimateDiff-Evolved

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

Error occurred when executing ADE_AnimateDiffLoaderWithContext: #395

Closed fc100b closed 4 months ago

fc100b commented 4 months ago

The problem as below:

Error occurred when executing ADE_AnimateDiffLoaderWithContext:

'ModelPatcher' object has no attribute 'model_keys'

File "D:\Program Files\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 160, in load_mm_and_inject_params model = ModelPatcherAndInjector.create_from(model, hooks_only=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 92, in create_from return ModelPatcherAndInjector(model) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 45, in init self.model_keys = m.model_keys ^^^^^^^^^^^^

Many thanks!

Kosinkadink commented 4 months ago

Had an update prepared to fix it before the ComfyUI update, simply update AnimateDiff-Evolved:

https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved/issues/394

gracelijian commented 3 months ago

更新后还是报错

Kosinkadink commented 3 months ago

更新后还是报错

If you get the error, it means it's not updated. Also make sure you don't have ComfyUI-AnimateLCM installed. You can try a manual git pull in the custom_nodes/ComfyUI-AnimateDiff-Evolved directory if the manager is failing to update it (can be caused if some other nodes fail to update for some reason).

peizhiluo007 commented 2 months ago

是不是 不需要再安装ComfyUI-AnimateLCM 这个节点了?

Kosinkadink commented 2 months ago

是不是 不需要再安装ComfyUI-AnimateLCM 这个节点了?

It was never necessary to use ComfyUI-AnimateLCM, I had AnimateLCM support in ComfyUI-AnimateDiff-Evolved within 48 hours of the diffusers code releasing.