You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Automatically Saving Grounding and Segmentation Results](#automatically-saving-grounding-results-image-demo)
27
28
-[Grounded SAM 2 Video Object Tracking Demo](#grounded-sam-2-video-object-tracking-demo)
28
29
-[Grounded SAM 2 Video Object Tracking Demo (with Grounding DINO 1.5 & 1.6)](#grounded-sam-2-video-object-tracking-demo-with-grounding-dino-15--16)
29
30
-[Grounded SAM 2 Video Object Tracking with Custom Video Input (using Grounding DINO)](#grounded-sam-2-video-object-tracking-demo-with-custom-video-input-with-grounding-dino)
@@ -128,6 +129,37 @@ Apply your API token from our official website here: [request API token](https:/
The `grounding` and `segmentation` results will be automatically saved in the `outputs` dir with the following format:
140
+
141
+
```python
142
+
{
143
+
"image_path": "path/to/image.jpg",
144
+
"annotations": [
145
+
{
146
+
"class_name": "class_name",
147
+
"bbox": [x1, y1, x2, y2],
148
+
"segmentation": {
149
+
"size": [h, w],
150
+
"counts": "rle_encoded_mask"
151
+
},
152
+
"score": confidence score
153
+
}
154
+
],
155
+
"box_format": "xyxy",
156
+
"img_width": w,
157
+
"img_height": h
158
+
}
159
+
```
160
+
161
+
162
+
131
163
### Grounded SAM 2 Video Object Tracking Demo
132
164
133
165
Based on the strong tracking capability of SAM 2, we can combined it with Grounding DINO for open-set object segmentation and tracking. You can run the following scripts to get the tracking results with Grounded SAM 2:
0 commit comments