Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImpactSimpleDectector_for_AD error #57

Open
LPassManager opened this issue Jan 17, 2024 · 1 comment
Open

ImpactSimpleDectector_for_AD error #57

LPassManager opened this issue Jan 17, 2024 · 1 comment

Comments

@LPassManager
Copy link

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
Copy link
Owner

ltdrdata commented Jan 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants