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
AttributeError: 'ModelPatcher' object has no attribute 'current_device',My comfyui and animatediff evolved are both the latest versions. Please solve this problem.
#443
Closed
haisheng666 opened this issue
Aug 9, 2024
· 5 comments
[AnimateDiffEvo] - INFO - Loading motion module v3_sd15_mm.ckpt
Model doesn't have a device attribute.
!!! Exception during processing!!! 'ModelPatcher' object has no attribute 'current_device'
Traceback (most recent call last):
File "E:\ProgramFilesSingle\huishi_launcher_2\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\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 "E:\ProgramFilesSingle\huishi_launcher_2\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 96, in create_from
return ModelPatcherAndInjector(model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 39, in init
super().init(m.model, m.load_device, m.offload_device, m.size, m.current_device, weight_inplace_update=m.weight_inplace_update)
^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'current_device'
The text was updated successfully, but these errors were encountered:
You can use the manager, or do a manual 'git pull' from the custom_nodes/ComfyUI-AnimateDiff-Evolved directory. ComfyUI-Manager's updates seem to fail for some reason if something is wrong with something else, and then it incorrectly says it updated.
[AnimateDiffEvo] - INFO - Loading motion module v3_sd15_mm.ckpt
Model doesn't have a device attribute.
!!! Exception during processing!!! 'ModelPatcher' object has no attribute 'current_device'
Traceback (most recent call last):
File "E:\ProgramFilesSingle\huishi_launcher_2\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\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 "E:\ProgramFilesSingle\huishi_launcher_2\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 96, in create_from
return ModelPatcherAndInjector(model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ProgramFilesSingle\huishi_launcher_2\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\model_injection.py", line 39, in init
super().init(m.model, m.load_device, m.offload_device, m.size, m.current_device, weight_inplace_update=m.weight_inplace_update)
^^^^^^^^^^^^^^^^
AttributeError: 'ModelPatcher' object has no attribute 'current_device'
The text was updated successfully, but these errors were encountered: