https://github.com/autodistill/autodistill-efficient-yolo-world

EfficientSAM + YOLO World base model for use with Autodistill.

https://github.com/autodistill/autodistill-efficient-yolo-world

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 (11.1%) to scientific vocabulary

Keywords

efficientsam yolo-world zero-shot-object-detection zero-shot-segmentation
Last synced: 9 months ago · JSON representation

Repository

EfficientSAM + YOLO World base model for use with Autodistill.

Basic Info
Statistics
  • Stars: 10
  • Watchers: 4
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Topics
efficientsam yolo-world zero-shot-object-detection zero-shot-segmentation
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme

README.md

Autodistill EfficientYOLOWorld Module

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

EfficientYOLOWorld is a combination of two models:

  1. YOLO-World, a zero-shot object detection model, and;
  2. EfficientSAM, an image segmentation model.

This model runs EfficientSAM on each bounding box region generated by YOLO-World. This allows you to retrieve both the bounding box and the segmentation mask for each object of interest in an image.

Read the full Autodistill documentation.

Read the EfficientYOLOWorld Autodistill documentation.

Installation

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

bash pip3 install autodistill-efficient-yolo-world

Quickstart

```python from autodistillefficientyolo_world import EfficientYOLOWorld from autodistill.detection import CaptionOntology import cv2 import supervision as sv

define an ontology to map class names to our EfficientYOLOWorld 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 = EfficientYOLOWorld(ontology=CaptionOntology({"book": "book"}))

predict on an image

result = base_model.predict("bookshelf.jpeg", confidence=0.1)

image = cv2.imread("bookshelf.jpeg")

maskannotator = sv.MaskAnnotator() annotatedframe = mask_annotator.annotate( scene=image.copy(), detections=result, )

sv.plotimage(annotatedframe)

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

License

EfficientSAM is licensed under an Apache 2.0 license.

YOLO-World is licensed under a GPL-3.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: 2
Last Year
  • Watch event: 2

Issues and Pull Requests

Last synced: over 1 year 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: 0.0
  • Average comments per pull request: 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
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

setup.py pypi
  • autodistill-efficientsam *
  • autodistill-yolo-world *
  • numpy *
  • supervision *
  • torch *