Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@haisheng666
Copy link

[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'

@Kosinkadink
Copy link
Owner

Update AnimateDiff-Evolved.

#439

@Kosinkadink Kosinkadink closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
@nitishJ17
Copy link

how to update?

@Kosinkadink
Copy link
Owner

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.

@nitishJ17
Copy link

Screenshot 2024-08-09 122141
need to install all these

@Kosinkadink
Copy link
Owner

Nope. You just need to update AnimateDiff-Evolved. The error this post is talking about nothing to do with models existing or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants