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
15.27k stars 1.41k forks source link

Hey getting this error while running over colab #527

Open Vishnu-sai-teja opened 2 months ago

Vishnu-sai-teja commented 2 months ago

BoxAnnotator.annotate() got an unexpected keyword argument 'labels'

This is specific to colab , and doesn't occus while running over local , is it related to dependency or function issue ?

Duy11999 commented 2 months ago

I solved it by adding from groundingdino.util.inference import load_model, load_image, predict, annotate. Hope it's useful!