use YOLOE to auto-label images for use in training fine-tuned object detection models
Project description
Autodistill YOLOE
Description
Use YOLOE to auto-label images for use in training fine-tuned object detection models
Overview
Autodistill YOLOE is a package that allows you to use YOLOE models with the Autodistill framework. YOLOE is a state-of-the-art object detection model that supports both text/visual prompting and prompt-free detection.
This integration enables you to:
- Use YOLOE models to automatically label images
- Prepare datasets for training custom object detection models
- Leverage both text-prompted and prompt-free detection capabilities
Installation
Python 3.11 or later is required
pip install autodistill-yoloe
Usage
Basic Example
from autodistill_yoloe import YOLOEBase
from autodistill.detection import CaptionOntology
# Define your ontology (the objects you want to detect)
ontology = CaptionOntology({"person": "person", "car": "car", "dog": "dog"})
# Initialize the YOLOE model
yoloe = YOLOEBase(ontology=ontology)
# Label a folder of images
dataset = yoloe.label("path/to/images", extension=".jpg")
# The labeled dataset is ready for training a custom model
print("Dataset created and ready for distillation!")
Using a Custom YOLOE Model
from autodistill_yoloe import YOLOEBase
from autodistill.detection import CaptionOntology
ontology = CaptionOntology({"person": "person", "car": "car"})
# Use a specific YOLOE model
yoloe = YOLOEBase(ontology=ontology, model="yoloe-11s-seg.pt")
# Make predictions on a single image
detections = yoloe.predict("path/to/image.jpg")
print(detections)
Human-in-the-Loop Labeling with Roboflow
from autodistill_yoloe import YOLOEBase
from autodistill.detection import CaptionOntology
ontology = CaptionOntology({"person": "person", "car": "car"})
yoloe = YOLOEBase(ontology=ontology)
# Enable human-in-the-loop labeling with Roboflow
dataset = yoloe.label(
"path/to/images",
human_in_the_loop=True,
roboflow_project="my-project-name"
)
Available Models
YOLOE supports several model variants:
Text/Visual Prompt Models
- YOLOE-11S
- YOLOE-11M
- YOLOE-11L
- YOLOE-v8S
- YOLOE-v8M
- YOLOE-v8L
Prompt-Free Models
- YOLOE-11S-PF
- YOLOE-11M-PF
- YOLOE-11L-PF
- YOLOE-v8S-PF
- YOLOE-v8M-PF
- YOLOE-v8L-PF
Advanced Features
- SAHI Integration: Enable SAHI (Slicing Aided Hyper Inference) for improved detection of small objects
- NMS Settings: Configure Non-Maximum Suppression for better detection results
- Confidence Recording: Save confidence scores with detections
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- Autodistill - The framework that makes this integration possible
- Ultralytics - Creators of the YOLOE model
- Supervision - Computer vision toolkit used for annotations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autodistill_yoloe-0.1.1.tar.gz.
File metadata
- Download URL: autodistill_yoloe-0.1.1.tar.gz
- Upload date:
- Size: 58.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9158ae6f9b1b71d29c81552b81dee19bc5a185c2759e93510bbb06f00167eb5a
|
|
| MD5 |
20cf1fef4631f4e3253e4c29308612b1
|
|
| BLAKE2b-256 |
8e9b97dfd0f296cce3d9fea5d74838d4e10b39b639100801eea27bb14bff334e
|
File details
Details for the file autodistill_yoloe-0.1.1-py3-none-any.whl.
File metadata
- Download URL: autodistill_yoloe-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2b8ccacf63136130e93314e8ec0accb2f3f562f84ba0c6aae4b828a3eba6c9b
|
|
| MD5 |
906518cc1c7d601964e4475a8272eaa2
|
|
| BLAKE2b-256 |
00445cad6b2f154b56742e40747bd1422e099ab72cf503b598355cc2972b60e0
|