kijai / ComfyUI-MimicMotionWrapper

Apache License 2.0
313 stars 25 forks source link

Error when using the example workflow #41

Open popovidis opened 3 months ago

popovidis commented 3 months ago
!!! Exception during processing!!! name 'is_accelerate_available' is not defined
Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "/workspace/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 "/workspace/ComfyUI/execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-MimicMotionWrapper/nodes.py", line 115, in loadmodel
    with (init_empty_weights() if is_accelerate_available else nullcontext()):
NameError: name 'is_accelerate_available' is not defined
wolverinex24 commented 3 months ago

same issue i am facing any solution or explanation

kijai commented 3 months ago

That's probably from having too old diffusers version

kijai commented 3 months ago

Or actually its from not having accelerate installed, either install that (recommended) or update these nodes and it shouldn't be necessary, just slower model loading

wolverinex24 commented 3 months ago

i updated the comfyui and python_dependencies it's fixed now thankyou just run this its inside update folder update_comfyui_and_python_dependencies.bat