ZHO-ZHO-ZHO / ComfyUI-YoloWorld-EfficientSAM

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

stack expects each tensor to be equal size, but got [1, 960, 728] at entry 0 and [2, 960, 728] at entry 10 #50

Open onlyjokers opened 6 months ago

onlyjokers commented 6 months ago

Error occurred when executing Yoloworld_ESAM_Zho:

stack expects each tensor to be equal size, but got [1, 960, 728] at entry 0 and [2, 960, 728] at entry 10

File "D:\SD\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\SD\ComfyUI_windows_portable_nvidia_cu121_or_cpu\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 "D:\SD\ComfyUI_windows_portable_nvidia_cu121_or_cpu\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 "D:\SD\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM\YOLO_WORLD_EfficientSAM.py", line 194, in yoloworld_esam_image new_masks = torch.stack(processed_masks, dim=0)

rossaai commented 5 months ago

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