nullquant / ComfyUI-BrushNet

ComfyUI BrushNet nodes
Apache License 2.0
384 stars 14 forks source link

'force_hooks',maybe clip issue? #74

Open laogu1027 opened 1 month ago

laogu1027 commented 1 month ago

Error occurred when executing BrushNetLoader:

load_checkpoint_and_dispatch() got an unexpected keyword argument 'force_hooks'

File "E:\ai\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\ai\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 "E:\ai\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "E:\ai\ComfyUI\custom_nodes\ComfyUI-BrushNet\brushnet_nodes.py", line 103, in brushnet_loading brushnet_model = load_checkpoint_and_dispatch(

nullquant commented 1 month ago

Please update your accelerate package. Or just do pip install -r requirements.txt in custom_nodes\ComfyUI-BrushNet folder. If you use portable ComfyUI, then you should update python embedded installation: E:\ai\ComfyUI\python_embeded\python.exe -m pip install -r E:\ai\ComfyUI\custom_nodes\ComfyUI-BrushNet\requirements.txt

laogu1027 commented 1 month ago

txs for reply. I try update accelerate all version below according to the requirements.txt 0.29.0, 0.29.1, 0.29.2, 0.29.3, 0.30.0rc0, 0.30.0 but still not work.

nullquant commented 1 month ago

It means you try to update wrong python installation. Try to find out which python installation used by ComfyUI. For example you can open main.py in ComfyUI base folder and add print(sys.executable) at line 47. Then start ComfyUI and look at console output.

kunkun-zhu commented 1 month ago

I also encountered the same problem. Have you solved it?

nullquant commented 1 month ago

It is a problem with your installation. Update nodes, then create a workflow like that:

Screenshot from 2024-06-03 11-13-29

Write "pip list" in Terminal node. Execute and check CoumfyUI log: it will list all packages with their version in your ComfyUI installation. accelerate package should have version 0.29 or more.