kijai / ComfyUI-Florence2

Inference Microsoft Florence2 VLM
MIT License
768 stars 51 forks source link

Error occurred when executing Florence2Run #47

Open srlegrand opened 3 months ago

srlegrand commented 3 months ago

Getting this error with Florence2Run, I haven't had time to look too deep into it, throwing it here in case there's something that looks obvious to anyone else.

Error occurred when executing Florence2Run:

can only be called with ndarray object

  File "/software/installed/realtime/ComfyUI/execution.py", line 152, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "/software/installed/realtime/ComfyUI/execution.py", line 82, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "/software/installed/realtime/ComfyUI/execution.py", line 75, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "/software/installed/realtime/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 274, in encode
    ax.add_patch(rect)
  File "/software/installed/realtime/miniconda/envs/comfy/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 2384, in add_patch
    self._update_patch_limits(p)
  File "/software/installed/realtime/miniconda/envs/comfy/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 2406, in _update_patch_limits
    for curve, code in p.iter_bezier(simplify=False):
  File "/software/installed/realtime/miniconda/envs/comfy/lib/python3.10/site-packages/matplotlib/path.py", line 437, in iter_bezier
    for verts, code in self.iter_segments(**kwargs):
  File "/software/installed/realtime/miniconda/envs/comfy/lib/python3.10/site-packages/matplotlib/path.py", line 404, in iter_segments
    if code == STOP:
pvbang commented 2 months ago

same error :(((

kijai commented 2 months ago

Just a guess but perhaps caused by old version of matplotlib, I suggest try to update that.