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

Small fix in automatic_label_simple_demo.py #460

Closed SimonGeb closed 4 months ago

SimonGeb commented 4 months ago

With the latest install of RAM(++), the original code throws a ValueError because detections has one more entry. This fixes it.

rentainhe commented 4 months ago

Thanks for this fixing!