Open laogu1027 opened 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
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.
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.
I also encountered the same problem. Have you solved it?
It is a problem with your installation. Update nodes, then create a workflow like that:
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.
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(