ltdrdata / ComfyUI-Inspire-Pack

This repository offers various extension nodes for ComfyUI. Nodes here have different characteristics compared to those in the ComfyUI Impact Pack. The Impact Pack has become too large now...
GNU General Public License v3.0
425 stars 50 forks source link

ImpactSimpleDectector_for_AD error #57

Open LPassManager opened 10 months ago

LPassManager commented 10 months ago

Hello Kind Sir, I have a error when attempting to use the Simple Detector for AnimateDiff ( SEGS ) I get the following error

Error occurred when executing ImpactSimpleDetectorSEGS_for_AD:

too many values to unpack (expected 2)

File "/opt/ComfyUI/execution.py", line 155, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/opt/ComfyUI/execution.py", line 85, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/opt/ComfyUI/execution.py", line 78, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/opt/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/detectors.py", line 458, in doit return SimpleDetectorForAnimateDiff.detect(bbox_detector, image_frames, bbox_threshold, bbox_dilation, crop_factor, drop_size, File "/opt/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/detectors.py", line 446, in detect return (get_pivot_segs(), ) File "/opt/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/detectors.py", line 401, in get_pivot_segs return segs_nodes.MaskToSEGS().doit(merged_mask, False, crop_factor, False, drop_size, contour_fill=True)[0] File "/opt/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/segs_nodes.py", line 1135, in doit result = core.mask_to_segs(mask, combined, crop_factor, bbox_fill, drop_size, is_contour=contour_fill) File "/opt/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/modules/impact/core.py", line 1022, in mask_to_segs contours, ctree = cv2.findContours(mask_i_uint8, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

Close

image

ltdrdata commented 9 months ago

It would be advisable to check the versions of the opencv-python, opencv-python-headless, and opencv-contrib-python packages.