diff --git a/README.md b/README.md index 18db760..ec3110d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Grounded SAM 2 does not introduce significant methodological changes compared to ## Contents - [Installation](#installation) -- [Grounded SAM 2 Demo](#grounded-sam-2-demos) +- [Grounded SAM 2 Demos](#grounded-sam-2-demos) - [Grounded SAM 2 Image Demo](#grounded-sam-2-image-demo-with-grounding-dino) - [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) @@ -27,6 +27,8 @@ Grounded SAM 2 does not introduce significant methodological changes compared to - [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) - [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) - [Grounded SAM 2 Video Object Tracking with Continues ID (using Grounding DINO)](#grounded-sam-2-video-object-tracking-with-continuous-id-with-grounding-dino) +- [Grounded SAM 2 Florence-2 Demos](#grounded-sam-2-florence-2-demos) + - [Grounded SAM 2 Florence-2 Image Demo](#grounded-sam-2-florence-2-image-demo) - [Citation](#citation) @@ -221,6 +223,11 @@ If you want to try `Grounding DINO 1.5` model, you can run the following scripts python grounded_sam2_tracking_demo_with_continuous_id_gd1.5.py ``` +## Grounded SAM 2 Florence-2 Demos +### Grounded SAM 2 Florence-2 Image Demo + +In this section, we will explore how to integrate the feature-rich and robust open-source models [Florence-2](https://arxiv.org/abs/2311.06242) and SAM 2 to develop practical applications. + ### Citation If you find this project helpful for your research, please consider citing the following BibTeX entry. diff --git a/grounded_sam2_image_demo_florence2.py b/grounded_sam2_image_demo_florence2.py index 755c15f..45a124e 100644 --- a/grounded_sam2_image_demo_florence2.py +++ b/grounded_sam2_image_demo_florence2.py @@ -173,7 +173,7 @@ def object_detection_and_segmentation( if __name__ == "__main__": - image_path = "/comp_robot/rentianhe/code/Grounded-SAM-2/notebooks/images/groceries.jpg" + image_path = "./notebooks/images/groceries.jpg" # pipeline-1: detection + segmentation object_detection_and_segmentation(