zcfrank1st / Comfyui-Yolov8

21 stars 9 forks source link

'NoneType' object has no attribute 'data' #1

Open gerroon opened 11 months ago

gerroon commented 11 months ago

Hi

I am getting this on Windows. I have yolov8s.pt under ComfyUI_windows_portable_nightly_pytorch\ComfyUI\models\yolov8

Error occurred when executing Yolov8Segmentation:

'NoneType' object has no attribute 'data'

File "c:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\ComfyUI_windows_portable_nightly_pytorch\ComfyUI\custom_nodes\Comfyui-Yolov8\comfy_yolov8.py", line 78, in seg
masks = results[0].masks.data
^^^^^^^^^^^^^^^^^^^^^
hsiong commented 9 months ago

Hey guys, maybe you should consider using a segmentation model in the segmentation component. 😊