Skip to main content

Autodistill YOLOv5 Module

This repository contains the code supporting the YOLOv5 target model for use with Autodistill.

YOLOv5 is an open-source computer vision model by Ultralytics, the creators of YOLOv5. You can use autodistill to train a YOLOv5 object detection model on a dataset of labelled images generated by the base models that autodistill supports.

View our YOLOv5 Instance Segmentation page for information on how to train instance segmentation models.

Read the full Autodistill documentation.

Read the YOLOv5 Autodistill documentation.

Installation

To use the YOLOv5 target model, you will need to install the following dependency:

pip3 install autodistill-yolov5

Quickstart

from autodistill_YOLOv5 import YOLOv5

target_model = YOLOv5("YOLOv5n.pt")

# train a model
target_model.train("./context_images_labeled/data.yaml", epochs=200)

# run inference on the new model
pred = target_model.predict("./context_images_labeled/train/images/dog-7.jpg", conf=0.01)

License

The code in this repository is licensed under an AGPL 3.0 license.

🏆 Contributing

We love your input! Please see the core Autodistill contributing guide to get started. Thank you 🙏 to all our contributors!

Release files for autodistill-yolov5 0.1.2

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-yolov5 0.1.2
File Size Uploaded
autodistill-yolov5-0.1.2.tar.gz 14.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autodistill-yolov5 0.1.2
File Interpreter ABI Platform
autodistill_yolov5-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 30.3 kB

Release files / autodistill-yolov5-0.1.2.tar.gz

Download URL autodistill-yolov5-0.1.2.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f2d62ce80225456a62c15c87863c70bb394f7b9fa16d3693c21f4609534be0b7
BLAKE2b-256 checksum
How to use checksums
0a8e87293c5eb4b71a4c1026f1db5e404867b147cc5c1de7bcabeb1dd093c63b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / autodistill_yolov5-0.1.2-py3-none-any.whl

Download URL autodistill_yolov5-0.1.2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6cbd2ce26aeef3642e7619ccf03174c7ac782c49aa60e1060d64b7f7b2219ce
BLAKE2b-256 checksum
How to use checksums
7095686accf72e93c0b0af376824ecf818fc97d77d3934830f1458e034c0386e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

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