Kosinkadink / ComfyUI-AnimateDiff-Evolved

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

AttributeError: 'ModelPatcher' object has no attribute 'model_keys'. #398

Closed rookiexiaoqi closed 4 weeks ago

rookiexiaoqi commented 4 weeks ago

When I was using the AnimateDiffEvo animatediff loader node to create a video, I encountered the following error at this node. What is the problem? Please help me take a look, thanks。 ERROR: Ckpt: [1] dreamshaper_8 Lora: [1] base_ckpt: dreamshaper_8 lora(mod,clip): v3_sd15_adapter(0.5,0.6) [AnimateDiffEvo] - INFO - Loading motion module v3_sd15_mm.ckpt !!! Exception during processing!!! 'ModelPatcher' object has no attribute 'model_keys' Traceback (most recent call last): File "D:\AIPaint\new\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\AIPaint\new\ComfyUI-aki-v1.3\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:\AIPaint\new\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\AIPaint\new\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 160, in load_mm_and_inject_params model = ModelPatcherAndInjector(model) File "D:\AIPaint\new\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 36, in init self.model_keys = m.model_keys AttributeError: 'ModelPatcher' object has no attribute 'model_keys'. Did you mean: 'model_dtype'?

Prompt executed in 5.81 seconds FETCH DATA from: D:\AIPaint\new\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]

Kosinkadink commented 4 weeks ago

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

Just update AnimateDiff-Evolved, otherwise it will not work on newer versions of ComfyUI.

rookiexiaoqi commented 4 weeks ago

394

Just update AnimateDiff-Evolved, otherwise it will not work on newer versions of ComfyUI.

It's OK ! Thank you very much,! Love!