comfyanonymous / ComfyUI

The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.
GNU General Public License v3.0
41.62k stars 4.42k forks source link

I don't know why this error happened #3794

Open myoni00 opened 2 weeks ago

myoni00 commented 2 weeks ago

Error occurred when executing PreviewImage:

Numpy is not available

File "E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\ComfyUI_windows_portable\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:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1434, in save_images i = 255. image.cpu().numpy() ^^^^^^^^^^^^^^^^^^^

artegoser commented 2 weeks ago

Idk why numpy==2.0.0 is installed.

Run this:

pip install numpy==1.26.4
ltdrdata commented 2 weeks ago

Idk why numpy==2.0.0 is installed.

Run this:

pip install numpy==1.26.4

Recently, anyone installing ComfyUI will inevitably have numpy 2 installed. Simply installing the basic requirements of ComfyUI will result in numpy 2 being installed.