Gourieff / comfyui-reactor-node

Fast and Simple Face Swap Extension Node for ComfyUI
GNU General Public License v3.0
1.08k stars 114 forks source link

name 'YOLO' is not defined #316

Open mrleotheo opened 1 month ago

mrleotheo commented 1 month ago

First, confirm

What happened?

Hi! I got this Issue. Please help

Steps to reproduce the problem

Your workflow

Sysinfo

4080

Relevant console log

Error occurred when executing ReActorMaskHelper:

name 'YOLO' is not defined

File "C:\AI!\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\AI!\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 "C:\AI!\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 "C:\AI!\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 703, in execute
bbox_model = subcore.load_yolo(bbox_model_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\AI!\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\scripts\r_masking\subcore.py", line 16, in load_yolo
return YOLO(model_path)
^^^^

Additional information

No response

neischlah commented 1 month ago

Looks like a dependency is missing - try pip install ultralytics