IDEA-Research / Grounded-Segment-Anything

Grounded SAM: Marrying Grounding DINO with Segment Anything & Stable Diffusion & Recognize Anything - Automatically Detect , Segment and Generate Anything
https://arxiv.org/abs/2401.14159
Apache License 2.0
14.11k stars 1.31k forks source link

ValueError: not enough values to unpack (expected 6, got 4) for grounded_sam_simple_demo.py #478

Open chuhuan88 opened 3 months ago

chuhuan88 commented 3 months ago

Traceback (most recent call last): File "/home/chuhuan/Grounded-Segment-Anything-main/grounded_sam_simple_demo.py", line 51, in labels = [ File "/home/chuhuan/Grounded-Segment-Anything-main/grounded_sam_simpledemo.py", line 53, in for , _, confidence, classid, , _ ValueError: not enough values to unpack (expected 6, got 4)

xhh12381 commented 1 month ago

@chuhuan88 The supervision version is too low. I tried updating to the latest version to solve the problem. pip uninstall supervision pip install supervision