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

How to save the instance mask with category and id #510

Open testingshanu opened 1 week ago

testingshanu commented 1 week ago

The tool, automatic_label_ram_demo.py creates the overlays with the json containing the data of bounding box. How to save the instance segmentation label in the json ?