diff --git a/README.md b/README.md index 84e8e15..50bf042 100644 --- a/README.md +++ b/README.md @@ -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 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 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) @@ -139,6 +140,10 @@ TEXT_PROMPT = "hippopotamus." OUTPUT_VIDEO_PATH = "./hippopotamus_tracking_demo.mp4" ``` +After running our demo code, you can get the tracking results as follows: + +[![Video Name](./assets/hippopotamus_seg.jpg)](https://github.com/user-attachments/assets/1fbdc6f4-3e50-4221-9600-98c397beecdf) + And we will automatically save the tracking visualization results in `OUTPUT_VIDEO_PATH`. > [!WARNING] diff --git a/assets/hippopotamus_seg.jpg b/assets/hippopotamus_seg.jpg new file mode 100644 index 0000000..15b8f81 Binary files /dev/null and b/assets/hippopotamus_seg.jpg differ diff --git a/grounded_sam2_tracking_demo_with_video_input_gd1.5.py b/grounded_sam2_tracking_demo_with_video_input_gd1.5.py index e80150d..4b98438 100644 --- a/grounded_sam2_tracking_demo_with_video_input_gd1.5.py +++ b/grounded_sam2_tracking_demo_with_video_input_gd1.5.py @@ -28,7 +28,7 @@ TEXT_PROMPT = "hippopotamus." OUTPUT_VIDEO_PATH = "./hippopotamus_tracking_demo.mp4" SOURCE_VIDEO_FRAME_DIR = "./custom_video_frames" 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