add demo video
This commit is contained in:
@@ -12,6 +12,7 @@ Grounded SAM 2 does not introduce significant methodological changes compared to
|
|||||||
- [Grounded-SAM-2 Image Demo (with Grounding DINO 1.5 & 1.6)](#grounded-sam-2-image-demo-with-grounding-dino-15--16)
|
- [Grounded-SAM-2 Image Demo (with Grounding DINO 1.5 & 1.6)](#grounded-sam-2-image-demo-with-grounding-dino-15--16)
|
||||||
- [Grounded-SAM-2 Video Object Tracking Demo](#grounded-sam-2-video-object-tracking-demo)
|
- [Grounded-SAM-2 Video Object Tracking Demo](#grounded-sam-2-video-object-tracking-demo)
|
||||||
- [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)
|
- [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)
|
||||||
|
- [Grounded-SAM-2 Video Object Tracking with Custom Video Input (using Grounding DINO 1.5 & 1.6)](#grounded-sam-2-video-object-tracking-demo-with-custom-video-input-with-grounding-dino-15--16)
|
||||||
- [Citation](#citation)
|
- [Citation](#citation)
|
||||||
|
|
||||||
|
|
||||||
@@ -139,6 +140,10 @@ TEXT_PROMPT = "hippopotamus."
|
|||||||
OUTPUT_VIDEO_PATH = "./hippopotamus_tracking_demo.mp4"
|
OUTPUT_VIDEO_PATH = "./hippopotamus_tracking_demo.mp4"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
After running our demo code, you can get the tracking results as follows:
|
||||||
|
|
||||||
|
[](https://github.com/user-attachments/assets/1fbdc6f4-3e50-4221-9600-98c397beecdf)
|
||||||
|
|
||||||
And we will automatically save the tracking visualization results in `OUTPUT_VIDEO_PATH`.
|
And we will automatically save the tracking visualization results in `OUTPUT_VIDEO_PATH`.
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
|
BIN
assets/hippopotamus_seg.jpg
Normal file
BIN
assets/hippopotamus_seg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 358 KiB |
@@ -28,7 +28,7 @@ TEXT_PROMPT = "hippopotamus."
|
|||||||
OUTPUT_VIDEO_PATH = "./hippopotamus_tracking_demo.mp4"
|
OUTPUT_VIDEO_PATH = "./hippopotamus_tracking_demo.mp4"
|
||||||
SOURCE_VIDEO_FRAME_DIR = "./custom_video_frames"
|
SOURCE_VIDEO_FRAME_DIR = "./custom_video_frames"
|
||||||
SAVE_TRACKING_RESULTS_DIR = "./tracking_results"
|
SAVE_TRACKING_RESULTS_DIR = "./tracking_results"
|
||||||
API_TOKEN_FOR_GD1_5 = "3491a2a256fb7ed01b2e757b713c4cb0"
|
API_TOKEN_FOR_GD1_5 = "Your API token"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Step 1: Environment settings and model initialization for SAM 2
|
Step 1: Environment settings and model initialization for SAM 2
|
||||||
|
Reference in New Issue
Block a user