Skip to main content

Autodistill YOLOE

PyPI - Version PyPI - Python Version

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:

  1. Use YOLOE models to automatically label images
  2. Prepare datasets for training custom object detection models
  3. 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

Metadata

Release files for autodistill-yoloe 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autodistill-yoloe 0.1.1
File Size Uploaded
autodistill_yoloe-0.1.1.tar.gz 58.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autodistill-yoloe 0.1.1
File Interpreter ABI Platform
autodistill_yoloe-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 62.4 kB

Release files / autodistill_yoloe-0.1.1.tar.gz

Download URL autodistill_yoloe-0.1.1.tar.gz
Size 58.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9158ae6f9b1b71d29c81552b81dee19bc5a185c2759e93510bbb06f00167eb5a
BLAKE2b-256 checksum
How to use checksums
8e9b97dfd0f296cce3d9fea5d74838d4e10b39b639100801eea27bb14bff334e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.10

Release files / autodistill_yoloe-0.1.1-py3-none-any.whl

Download URL autodistill_yoloe-0.1.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2b8ccacf63136130e93314e8ec0accb2f3f562f84ba0c6aae4b828a3eba6c9b
BLAKE2b-256 checksum
How to use checksums
00445cad6b2f154b56742e40747bd1422e099ab72cf503b598355cc2972b60e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page