https://github.com/autodistill/autodistill-grounded-sam
GroundedSAM Base Model plugin for Autodistill
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Keywords
Repository
GroundedSAM Base Model plugin for Autodistill
Basic Info
- Host: GitHub
- Owner: autodistill
- License: apache-2.0
- Language: Python
- Default Branch: main
- Homepage: https://docs.autodistill.com
- Size: 13.7 KB
Statistics
- Stars: 51
- Watchers: 3
- Forks: 10
- Open Issues: 6
- Releases: 0
Topics
Metadata Files
README.md
Autodistill: GroundedSAM Base Model
This repository contains the code implementing GroundedSAM as a Base Model for use with autodistill.
GroundedSAM combines GroundingDINO with the Segment Anything Model to identify and segment objects in an image given text captions.
Read the full Autodistill documentation.
Read the GroundedSAM Autodistill documentation.
[!TIP] You can use Autodistill Grounded SAM on your own hardware using the instructions below, or use the Roboflow hosted version of Autodistill to label images in the cloud.
Installation
To use the GroundedSAM Base Model, simply install it along with a Target Model supporting the detection task:
bash
pip3 install autodistill-grounded-sam autodistill-yolov8
You can find a full list of detection Target Models on the main autodistill repo.
Quickstart
```python from autodistillgroundedsam import GroundedSAM from autodistill.detection import CaptionOntology from autodistill.utils import plot import cv2
define an ontology to map class names to our GroundedSAM prompt
the ontology dictionary has the format {caption: class}
where caption is the prompt sent to the base model, and class is the label that will
be saved for that caption in the generated annotations
then, load the model
base_model = GroundedSAM( ontology=CaptionOntology( { "person": "person", "shipping container": "shipping container", } ) )
run inference on a single image
results = base_model.predict("logistics.jpeg")
plot( image=cv2.imread("logistics.jpeg"), classes=base_model.ontology.classes(), detections=results )
label all images in a folder called context_images
basemodel.label("./contextimages", extension=".jpeg") ```
License
The code in this repository is licensed under an Apache 2.0 license.
🏆 Contributing
We love your input! Please see the core Autodistill contributing guide to get started. Thank you 🙏 to all our contributors!
Owner
- Name: Autodistill
- Login: autodistill
- Kind: organization
- Email: autodistill@roboflow.com
- Website: https://autodistill.com
- Repositories: 1
- Profile: https://github.com/autodistill
Use bigger slower models to train smaller faster ones
GitHub Events
Total
- Watch event: 7
- Fork event: 2
Last Year
- Watch event: 7
- Fork event: 2
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| James Gallagher | j****g@j****g | 3 |
| Brad Dwyer | b****d@r****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 12
- Total pull requests: 2
- Average time to close issues: about 1 month
- Average time to close pull requests: 4 months
- Total issue authors: 10
- Total pull request authors: 2
- Average comments per issue: 2.25
- Average comments per pull request: 1.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Jordan-Pierce (2)
- Siwakonrome (1)
- nihirv (1)
- JALALDATA (1)
- EduardoPach (1)
- JudithR (1)
- tfriedel (1)
- pythonstuff8 (1)
- csv610 (1)
- shersoni610 (1)
Pull Request Authors
- Youho99 (2)
- ssun-g (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 2,735 last-month
- Total dependent packages: 7
- Total dependent repositories: 1
- Total versions: 6
- Total maintainers: 1
pypi.org: autodistill-grounded-sam
Automatically distill large foundational models into smaller, in-domain models for deployment
- Homepage: https://github.com/autodistill/autodistill-grounded-sam
- Documentation: https://autodistill-grounded-sam.readthedocs.io/
- License: MIT License
-
Latest release: 0.1.2
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v2 composite
- actions/checkout v3 composite
- actions/setup-python v2 composite
- actions/first-interaction v1.1.1 composite
- autodistill *
- numpy >=1.20.0
- opencv-python >=4.6.0
- rf_groundingdino *
- rf_segment_anything *
- supervision *
- torch *