- Notifications
You must be signed in to change notification settings - Fork15
Grounding DINO module for use with Autodistill.
License
autodistill/autodistill-grounding-dino
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains the code supporting the Grounding DINO base model for use withAutodistill.
Grounding DINO is a zero-shot object detection model developed by IDEA Research. You can distill knowledge from Grounding DINO into a smaller model using Autodistill.
Read theGrounding DINO Autodistill documentation.
Tip
You can use Autodistill Grounding DINO on your own hardware, or use theRoboflow hosted version of Autodistill to label images in the cloud.
To use the Grounding DINO base model, you will need to install the following dependency:
pip3 install autodistill autodistill-yolov8 autodistill-grounding-dino
fromautodistill_grounding_dinoimportGroundingDINOfromautodistill.detectionimportCaptionOntologyfromautodistill_yolov8importYOLOv8# 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 modelbase_model=GroundingDINO(ontology=CaptionOntology({"shipping container":"container"}))# label all images in a folder called `context_images`base_model.label("./context_images",extension=".jpeg")
The code in this repository is licensed under anApache 2.0 license.
We love your input! Please see the core Autodistillcontributing guide to get started. Thank you 🙏 to all our contributors!
About
Grounding DINO module for use with Autodistill.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.