cubiq / ComfyUI_essentials

MIT License
353 stars 42 forks source link

error when i use sam model : !!! Exception during processing!!! '{}' is not of type 'array' #30

Open gsongX opened 2 months ago

gsongX commented 2 months ago

Snipaste_2024-04-30_05-00-32 my workflow : workflow

Error occurred when executing ImageRemoveBackground+:

'{}' is not of type 'array'

Failed validating 'type' in schema: {'items': {'properties': {'data': {'items': {'type': 'number'}, 'type': 'array'}, 'label': {'type': 'integer'}, 'type': {'type': 'string'}}, 'type': 'object'}, 'type': 'array'}

On instance: '{}'

File "D:\AI-Starter\ComfyUI_windows\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AI-Starter\ComfyUI_windows\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 "D:\AI-Starter\ComfyUI_windows\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AI-Starter\ComfyUI_windows\ComfyUI\custom_nodes\ComfyUI_essentials\essentials.py", line 1637, in execute img = rembg(img, session=rembg_session) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AI-Starter\ComfyUI_windows\ComfyUI\python\Lib\site-packages\rembg\bg.py", line 260, in remove masks = session.predict(img, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\AI-Starter\ComfyUI_windows\ComfyUI\python\Lib\site-packages\rembg\sessions\sam.py", line 169, in predict validate(instance=prompt, schema=schema) File "D:\AI-Starter\ComfyUI_windows\ComfyUI\python\Lib\site-packages\jsonschema\validators.py", line 1312, in validate raise error

cubiq commented 2 months ago

yeah I noticed, it's weird, I'll check but all the other models work