You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find anyone else with this exact same error, I saw one that had no "model_keys" but I assume it's not the same thing. I made sure both my comfyui and Animatediff are updated, and yet it keeps failing, maybe it's obvious but I can't understand the problem.
This is my first time reporting an issue so I apologize if this is the wrong way to do it.
`
ComfyUI Error Report
Error Details
Node Type: ADE_AnimateDiffLoaderGen1
Exception Type: AttributeError
Exception Message: 'ModelPatcher' object has no attribute 'add_callback_with_key'
Stack Trace
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 55, in load_mm_and_inject_params
motion_model = load_motion_module_gen2(model_name=model_name, motion_model_settings=ad_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 797, in load_motion_module_gen2
motion_model = create_MotionModelPatcher(model=ad_wrapper, load_device=comfy.model_management.get_torch_device(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 193, in create_MotionModelPatcher
patcher.add_callback_with_key(CallbacksMP.ON_LOAD, ade, _mm_patch_lowvram_extras_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Python Version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
Embedded Python: true
PyTorch Version: 2.4.1+cu121
Devices
Name: cuda:0 NVIDIA GeForce RTX 3090 Ti : cudaMallocAsync
Type: cuda
VRAM Total: 25756565504
VRAM Free: 17568865712
Torch VRAM Total: 6811549696
Torch VRAM Free: 31432112
Logs
2025-01-01 12:52:32,403 - root - INFO - Total VRAM 24563 MB, total RAM 32684 MB
2025-01-01 12:52:32,404 - root - INFO - pytorch version: 2.4.1+cu121
2025-01-01 12:52:32,406 - root - INFO - Set vram state to: NORMAL_VRAM
2025-01-01 12:52:32,406 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3090 Ti : cudaMallocAsync
2025-01-01 12:52:33,392 - root - INFO - Using pytorch cross attention
2025-01-01 12:52:34,655 - root - INFO - [Prompt Server] web root: G:\AI\ComfyUI_windows_portable4\ComfyUI\web
2025-01-01 12:52:35,412 - root - WARNING - Traceback (most recent call last):
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\nodes.py", line 2001, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 936, in exec_module
File "<frozen importlib._bootstrap_external>", line 1073, in get_code
File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'G:\\AI\\ComfyUI_windows_portable4\\ComfyUI\\custom_nodes\\bu\\__init__.py'
2025-01-01 12:52:35,412 - root - WARNING - Cannot import G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\bu module for custom nodes: [Errno 2] No such file or directory: 'G:\\AI\\ComfyUI_windows_portable4\\ComfyUI\\custom_nodes\\bu\\__init__.py'
2025-01-01 12:52:35,990 - root - INFO -
Import times for custom nodes:
2025-01-01 12:52:35,990 - root - INFO - 0.0 seconds: G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\websocket_image_save.py
2025-01-01 12:52:35,991 - root - INFO - 0.0 seconds (IMPORT FAILED): G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\bu
2025-01-01 12:52:35,991 - root - INFO - 0.0 seconds: G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
2025-01-01 12:52:35,992 - root - INFO - 0.1 seconds: G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI_bitsandbytes_NF4
2025-01-01 12:52:35,992 - root - INFO - 0.1 seconds: G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-DynamiCrafterWrapper-main
2025-01-01 12:52:35,992 - root - INFO - 0.1 seconds: G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
2025-01-01 12:52:35,992 - root - INFO - 0.3 seconds: G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-Manager
2025-01-01 12:52:35,992 - root - INFO -
2025-01-01 12:52:36,000 - root - INFO - Starting server
2025-01-01 12:52:36,000 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2025-01-01 12:52:38,353 - root - INFO - got prompt
2025-01-01 12:52:38,420 - root - INFO - Using pytorch attention in VAE
2025-01-01 12:52:38,422 - root - INFO - Using pytorch attention in VAE
2025-01-01 12:52:38,791 - root - INFO - model weight dtype torch.float16, manual cast: None
2025-01-01 12:52:38,792 - root - INFO - model_type EPS
2025-01-01 12:52:40,535 - root - INFO - Using pytorch attention in VAE
2025-01-01 12:52:40,536 - root - INFO - Using pytorch attention in VAE
2025-01-01 12:52:40,841 - root - INFO - Requested to load SDXLClipModel
2025-01-01 12:52:40,841 - root - INFO - Loading 1 new model
2025-01-01 12:52:40,853 - root - INFO - loaded completely 0.0 1560.802734375 True
2025-01-01 12:52:41,446 - root - INFO - loaded straight to GPU
2025-01-01 12:52:41,447 - root - INFO - Requested to load SDXL
2025-01-01 12:52:41,447 - root - INFO - Loading 1 new model
2025-01-01 12:52:41,477 - root - INFO - loaded completely 0.0 4897.0483474731445 True
2025-01-01 12:52:41,752 - root - INFO - Requested to load SDXLClipModel
2025-01-01 12:52:41,752 - root - INFO - Loading 1 new model
2025-01-01 12:52:43,299 - root - ERROR - !!! Exception during processing !!! 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:52:43,300 - root - ERROR - Traceback (most recent call last):
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 55, in load_mm_and_inject_params
motion_model = load_motion_module_gen2(model_name=model_name, motion_model_settings=ad_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 797, in load_motion_module_gen2
motion_model = create_MotionModelPatcher(model=ad_wrapper, load_device=comfy.model_management.get_torch_device(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 193, in create_MotionModelPatcher
patcher.add_callback_with_key(CallbacksMP.ON_LOAD, ade, _mm_patch_lowvram_extras_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:52:43,301 - root - INFO - Prompt executed in 4.90 seconds
2025-01-01 12:52:55,592 - root - INFO - got prompt
2025-01-01 12:52:56,680 - root - ERROR - !!! Exception during processing !!! 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:52:56,681 - root - ERROR - Traceback (most recent call last):
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 55, in load_mm_and_inject_params
motion_model = load_motion_module_gen2(model_name=model_name, motion_model_settings=ad_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 797, in load_motion_module_gen2
motion_model = create_MotionModelPatcher(model=ad_wrapper, load_device=comfy.model_management.get_torch_device(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 193, in create_MotionModelPatcher
patcher.add_callback_with_key(CallbacksMP.ON_LOAD, ade, _mm_patch_lowvram_extras_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:52:56,683 - root - INFO - Prompt executed in 1.04 seconds
2025-01-01 12:53:19,021 - root - INFO - got prompt
2025-01-01 12:53:19,883 - root - ERROR - !!! Exception during processing !!! 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:53:19,884 - root - ERROR - Traceback (most recent call last):
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 55, in load_mm_and_inject_params
motion_model = load_motion_module_gen2(model_name=model_name, motion_model_settings=ad_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 797, in load_motion_module_gen2
motion_model = create_MotionModelPatcher(model=ad_wrapper, load_device=comfy.model_management.get_torch_device(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 193, in create_MotionModelPatcher
patcher.add_callback_with_key(CallbacksMP.ON_LOAD, ade, _mm_patch_lowvram_extras_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:53:19,886 - root - INFO - Prompt executed in 0.82 seconds
2025-01-01 12:55:04,956 - root - INFO - got prompt
2025-01-01 12:55:05,770 - root - ERROR - !!! Exception during processing !!! 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:55:05,771 - root - ERROR - Traceback (most recent call last):
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 55, in load_mm_and_inject_params
motion_model = load_motion_module_gen2(model_name=model_name, motion_model_settings=ad_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 797, in load_motion_module_gen2
motion_model = create_MotionModelPatcher(model=ad_wrapper, load_device=comfy.model_management.get_torch_device(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 193, in create_MotionModelPatcher
patcher.add_callback_with_key(CallbacksMP.ON_LOAD, ade, _mm_patch_lowvram_extras_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:55:05,772 - root - INFO - Prompt executed in 0.77 seconds
2025-01-01 12:58:58,578 - root - INFO - got prompt
2025-01-01 12:58:59,500 - root - ERROR - !!! Exception during processing !!! 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:58:59,502 - root - ERROR - Traceback (most recent call last):
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes_gen1.py", line 55, in load_mm_and_inject_params
motion_model = load_motion_module_gen2(model_name=model_name, motion_model_settings=ad_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 797, in load_motion_module_gen2
motion_model = create_MotionModelPatcher(model=ad_wrapper, load_device=comfy.model_management.get_torch_device(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_windows_portable4\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 193, in create_MotionModelPatcher
patcher.add_callback_with_key(CallbacksMP.ON_LOAD, ade, _mm_patch_lowvram_extras_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'add_callback_with_key'
2025-01-01 12:58:59,503 - root - INFO - Prompt executed in 0.88 seconds
Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
{"last_node_id":45,"last_link_id":59,"nodes":[{"id":6,"type":"CLIPTextEncode","pos":{"0":1030,"1":910},"size":{"0":391.23883056640625,"1":78.14339447021484},"flags":{},"order":10,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":3}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[5],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["(worst quality, low quality: 1.4)"],"color":"#322","bgcolor":"#533"},{"id":7,"type":"KSampler","pos":{"0":1480,"1":650},"size":{"0":315,"1":262},"flags":{},"order":11,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":49},{"name":"positive","type":"CONDITIONING","link":4},{"name":"negative","type":"CONDITIONING","link":5},{"name":"latent_image","type":"LATENT","link":39},{"name":"seed","type":"INT","link":6,"widget":{"name":"seed"}}],"outputs":[{"name":"LATENT","type":"LATENT","links":[9],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"KSampler"},"widgets_values":[39542740430301,"fixed",20,8,"euler","normal",1]},{"id":4,"type":"CLIPSetLastLayer","pos":{"0":667,"1":653},"size":{"0":315,"1":58},"flags":{},"order":7,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":44}],"outputs":[{"name":"CLIP","type":"CLIP","links":[2,3],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPSetLastLayer"},"widgets_values":[-2]},{"id":10,"type":"VAEDecode","pos":{"0":1480,"1":547},"size":{"0":210,"1":46},"flags":{},"order":12,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":9},{"name":"vae","type":"VAE","link":10}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[50],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":37,"type":"VHS_VideoCombine","pos":{"0":1884,"1":545},"size":{"0":315,"1":238},"flags":{},"order":13,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":50},{"name":"audio","type":"AUDIO","link":null,"shape":7},{"name":"meta_batch","type":"VHS_BatchManager","link":null,"shape":7},{"name":"vae","type":"VAE","link":null,"shape":7}],"outputs":[{"name":"Filenames","type":"VHS_FILENAMES","links":null,"shape":3}],"properties":{"Node name for S&R":"VHS_VideoCombine"},"widgets_values":{"frame_rate":8,"loop_count":0,"filename_prefix":"AnimateDiff/readme","format":"image/gif","pingpong":false,"save_output":true,"videopreview":{"hidden":false,"paused":false,"params":{"filename":"readme_00456.gif","subfolder":"AnimateDiff","type":"output","format":"image/gif","frame_rate":8},"muted":false}},"color":"#223","bgcolor":"#335"},{"id":9,"type":"EmptyLatentImage","pos":{"0":1068.54052734375,"1":563.2559814453125},"size":{"0":315,"1":106},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"LATENT","type":"LATENT","links":[39],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"EmptyLatentImage"},"widgets_values":[512,512,16]},{"id":3,"type":"CLIPTextEncode","pos":{"0":1031,"1":723},"size":{"0":377.7811279296875,"1":124.52955627441406},"flags":{},"order":9,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":2}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[4],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["1girl, solo, cherry blossom, hanami, pink flower, white flower, spring season, wisteria, petals, flower, plum blossoms, outdoors, falling petals, black eyes, upper body, from side"],"color":"#232","bgcolor":"#353"},{"id":40,"type":"ADE_AnimateDiffSamplingSettings","pos":{"0":799,"1":280},"size":{"0":220,"1":254},"flags":{},"order":1,"mode":0,"inputs":[{"name":"noise_layers","type":"NOISE_LAYERS","link":null,"shape":7},{"name":"iteration_opts","type":"ITERATION_OPTS","link":null,"shape":7},{"name":"custom_cfg","type":"CUSTOM_CFG","link":null,"shape":7},{"name":"sigma_schedule","type":"SIGMA_SCHEDULE","link":null,"shape":7},{"name":"image_inject","type":"IMAGE_INJECT","link":null,"shape":7},{"name":"seed_override","type":"INT","link":null,"widget":{"name":"seed_override"}}],"outputs":[{"name":"settings","type":"SAMPLE_SETTINGS","links":[52],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"ADE_AnimateDiffSamplingSettings"},"widgets_values":[0,"FreeNoise","comfy",0,0,false],"color":"#432","bgcolor":"#653"},{"id":32,"type":"CheckpointLoaderSimple","pos":{"0":224,"1":623},"size":{"0":315,"1":98},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[48],"slot_index":0,"shape":3},{"name":"CLIP","type":"CLIP","links":[44],"slot_index":1,"shape":3},{"name":"VAE","type":"VAE","links":null,"shape":3}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["autismmixSDXL_autismmixPony.safetensors"]},{"id":2,"type":"VAELoader","pos":{"0":398,"1":780},"size":{"0":385.8948669433594,"1":58},"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"VAE","type":"VAE","links":[10],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"VAELoader"},"widgets_values":["Vae-ft-mse-840000-ema-pruned.safetensors"]},{"id":5,"type":"PrimitiveNode","pos":{"0":474,"1":882},"size":{"0":285.6000061035156,"1":82},"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"INT","type":"INT","links":[6],"slot_index":0,"widget":{"name":"seed"}}],"title":"Primitive (I'm using this as seed)","properties":{"Run widget replace on values":false},"widgets_values":[39542740430301,"randomize"],"color":"#2a363b","bgcolor":"#3f5159"},{"id":39,"type":"ADE_StandardStaticContextOptions","pos":{"0":709,"1":18},"size":{"0":319.20001220703125,"1":198},"flags":{},"order":5,"mode":0,"inputs":[{"name":"prev_context","type":"CONTEXT_OPTIONS","link":null,"shape":7},{"name":"view_opts","type":"VIEW_OPTS","link":null,"shape":7}],"outputs":[{"name":"CONTEXT_OPTS","type":"CONTEXT_OPTIONS","links":[51],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"ADE_StandardStaticContextOptions"},"widgets_values":[16,4,"pyramid",false,0,1],"color":"#432","bgcolor":"#653"},{"id":45,"type":"Note","pos":{"0":318,"1":112},"size":{"0":392,"1":351},"flags":{},"order":6,"mode":0,"inputs":[],"outputs":[],"properties":{"text":""},"widgets_values":["Most SD1.5 AnimateDiff models have a sweetspot of 16 frames, so the recommended minimum amount of latents to use is 16. The further lower it is than the sweetspot, the more artifacted the results will become.\n\nContext Options work on context_length latents at a time before 'sliding over' to work on the next group of latents with a context_overlap amount of overlapped frames. This lets you render more than the sweetspot amount of frames.\n\nNOTE: Having Context Options connected will not impact results unless the amount of latents exceeds context_length (unless use_on_equal_length is set to true, which would also activate them if context_length is equal to the latents length passed into a Sampler node).\n\nSample Settings allows for selecting other noise_types. When first placed, noise_type is default, but FreeNoise is recommended (and only takes effect) when Context Options are active, if the goal is to have a more 'consistent' output. Also see Context Extras that can be chained with Context Options.\n\nNOTE: When first placing the Sample Settings node, all default settings correspond to the same thing as if Sample Settings was not plugged in at all."],"color":"#432","bgcolor":"#653"},{"id":36,"type":"ADE_AnimateDiffLoaderGen1","pos":{"0":1070,"1":120},"size":{"0":315,"1":242},"flags":{},"order":8,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":48},{"name":"context_options","type":"CONTEXT_OPTIONS","link":51,"shape":7},{"name":"motion_lora","type":"MOTION_LORA","link":null,"shape":7},{"name":"ad_settings","type":"AD_SETTINGS","link":null,"shape":7},{"name":"ad_keyframes","type":"AD_KEYFRAMES","link":null,"shape":7},{"name":"sample_settings","type":"SAMPLE_SETTINGS","link":52,"shape":7},{"name":"scale_multival","type":"MULTIVAL","link":null,"shape":7},{"name":"effect_multival","type":"MULTIVAL","link":null,"shape":7},{"name":"per_block","type":"PER_BLOCK","link":null,"shape":7}],"outputs":[{"name":"MODEL","type":"MODEL","links":[49],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"ADE_AnimateDiffLoaderGen1"},"widgets_values":["mm_sdxl_v10_beta.ckpt","linear (AnimateDiff-SDXL)"],"color":"#432","bgcolor":"#653"}],"links":[[2,4,0,3,0,"CLIP"],[3,4,0,6,0,"CLIP"],[4,3,0,7,1,"CONDITIONING"],[5,6,0,7,2,"CONDITIONING"],[6,5,0,7,4,"INT"],[9,7,0,10,0,"LATENT"],[10,2,0,10,1,"VAE"],[39,9,0,7,3,"LATENT"],[44,32,1,4,0,"CLIP"],[48,32,0,36,0,"MODEL"],[49,36,0,7,0,"MODEL"],[50,10,0,37,0,"IMAGE"],[51,39,0,36,1,"CONTEXT_OPTIONS"],[52,40,0,36,5,"SAMPLE_SETTINGS"]],"groups":[{"title":"Change this to match your model reqs","bounding":[595,571,416,165],"color":"#3f789e","font_size":24,"flags":{}},{"title":"Latents = Animation length","bounding":[1057,485,327,150],"color":"#3f789e","font_size":24,"flags":{}}],"config":{},"extra":{"ds":{"scale":0.9090909090909091,"offset":[39.795236571169475,122.20897931314236]}},"version":0.4}
Additional Context
()
`
The text was updated successfully, but these errors were encountered:
I couldn't find anyone else with this exact same error, I saw one that had no "model_keys" but I assume it's not the same thing. I made sure both my comfyui and Animatediff are updated, and yet it keeps failing, maybe it's obvious but I can't understand the problem.
This is my first time reporting an issue so I apologize if this is the wrong way to do it.
`
ComfyUI Error Report
Error Details
Stack Trace
System Information
Devices
Logs
Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
Additional Context
()
`
The text was updated successfully, but these errors were encountered: