Skip to main content

YOLOv5 module for use with Autodistill

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autodistill-yolov5-0.1.2.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

autodistill_yolov5-0.1.2-py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page