ZHO-ZHO-ZHO / ComfyUI-YoloWorld-EfficientSAM

Unofficial implementation of YOLO-World + EfficientSAM for ComfyUI
GNU General Public License v3.0
487 stars 44 forks source link

YoloWorld-EfficientSAM doesn't seem to work after installation #17

Open aicoder2048 opened 3 months ago

aicoder2048 commented 3 months ago

I did two ways of installation, manual install and manager install:

  1. during manual install, I see this error but I chose to ignore it and I don't know if it is related to the problem.

    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. mediapipe 0.10.9 requires protobuf<4,>=3.11, but you have protobuf 4.25.2 which is incompatible.

  2. I then run the sample workflow provide for image, and the node "Convert mask to image" throws the following error (see also attached screenshot):

image

=== Error occurred when executing MaskToImage:

cannot reshape tensor of 0 elements into shape [-1, 1, 1, 0] because the unspecified dimension size -1 can be any value and is ambiguous

File "C:\Apps\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Apps\ComfyUI\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:\Apps\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Apps\ComfyUI\ComfyUI\comfy_extras\nodes_mask.py", line 109, in mask_to_image result = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  1. I then removed the "Convert mask to image" node, and nothing ( of detection) seems to happen, see screen shot below: image

  2. btw, any idea which directory is yolo-world/l model auto-downloaded to ?

  3. I then manually deleted the above installation and installed again via manager this time. I don't notice any error (such as the above mentioned incompatible protobuf error), but the exception thrown by "Convert mask to image" node persists and the detection of yolo-world still doesn't happen.

Pls help and thanks a bunch in advance (so eager to try out the excellent YOLO-WORLD + ESAM!!!)

Sean

rossaai commented 1 month ago

Try a confidence threshold of 0.00 or 0.01 https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/468#issuecomment-1954328230