Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

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

Open chuhuan88 opened this issue 11 months ago • 2 comments

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_simple_demo.py", line 53, in for _, _, confidence, class_id, _, _ ValueError: not enough values to unpack (expected 6, got 4)

chuhuan88 avatar Mar 26 '24 04:03 chuhuan88

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

xhh12381 avatar May 17 '24 09:05 xhh12381

@chuhuan88 labels = [ f"{CLASSES[class_id]} {confidence:0.2f}" for confidence, class_id in zip(detections.confidence, detections.class_id) ]

yuanqianxi0503 avatar Sep 10 '24 13:09 yuanqianxi0503