Skip to content

Kairui-SHI/Grounded-SAM2-for-masking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Extract object masks by Grounded SAM 2

Please note that we use the method of Grounded SAM 2 and we modified to generate the masks of the objects in RGB images

Set up your datasets:

datasets/
│
├── ds01/
│   ├── images

Extract object masks:

python grounded_sam2_hf_model_imgs_MaskExtract.py --path {PATH}

Outputs:

Saving the masks in datasets/{PATH}/masks and the annotated images in datasets/{PATH}/annotated

datasets/
│
├── ds01/
│   ├── images
│   ├── masks
│   └── annotated

About

Extract object masks by Grounded SAM2

Resources

License

Apache-2.0 and 3 other licenses found

Licenses found

Apache-2.0
LICENSE
BSD-3-Clause
LICENSE_cctorch
Apache-2.0
LICENSE_groundingdino
Apache-2.0
LICENSE_sam2

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6