https://github.com/autodistill/autodistill-grounded-edgesam

EdgeSAM model for use with Autodistill.

https://github.com/autodistill/autodistill-grounded-edgesam

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
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary

Keywords

autodistill edgesam grounded-multimodal-model image-segmentation
Last synced: 5 months ago · JSON representation

Repository

EdgeSAM model for use with Autodistill.

Basic Info
Statistics
  • Stars: 26
  • Watchers: 3
  • Forks: 2
  • Open Issues: 1
  • Releases: 0
Topics
autodistill edgesam grounded-multimodal-model image-segmentation
Created about 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

Autodistill Grounded EdgeSAM Module

This repository contains the code supporting the Grounded EdgeSAM base model for use with Autodistill.

EdgeSAM, introduced in the "EdgeSAM: Prompt-In-the-Loop Distillation for On-Device Deployment of SAM" paper, is a faster version of the Segment Anything model.

Grounded EdgeSAM combines Grounding DINO and EdgeSAM, allowing you to identify objects and generate segmentation masks for them.

Read the full Autodistill documentation to learn more about Autodistill.

Installation

To use Grounded EdgeSAM with autodistill, you need to install the following dependency:

bash pip3 install autodistill-grounded-edgesam

Quickstart

```python from autodistill_clip import CLIP

define an ontology to map class names to our GroundingDINO 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

from autodistillgroundededgesam import GroundedEdgeSAM 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 = GroundedEdgeSAM( ontology=CaptionOntology( { "person": "person", "forklift": "forklift", } ) )

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 a folder of images

basemodel.label("./contextimages", extension=".jpeg") ```

License

This repository is released under an S-Lab License 1.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

Use bigger slower models to train smaller faster ones

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 2.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • MichaelHoltonPrice (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

setup.py pypi
  • autodistill *
  • numpy >=1.20.0
  • opencv-python >=4.6.0
  • rf_groundingdino *
  • rf_segment_anything *
  • supervision *
  • torch *