Skip to main content

YOLO-NAS module for use with Autodistill

Project description

Autodistill YOLO-NAS Module

This repository contains the code supporting the YOLO-NAS target model for use with Autodistill.

YOLO-NAS is an object detection model developed by Deci AI.

You can use autodistill to train a YOLO-NAS object detection model on a dataset of labelled images generated by the base models that autodistill supports.

Read the full Autodistill documentation.

Read the YOLO-NAS Autodistill documentation.

Installation

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

pip3 install autodistill-yolo-nas

Quickstart

from autodistill_yolo_nas import YOLONAS

target_model = YOLONAS("YOLOv5n.pt")

# train a model
# specify the directory where your annotations (in YOLO format) are stored
target_model.train("./context_images_labeled", epochs=20)

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

License

The YOLO-NAS model is licensed under the YOLO-NAS 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-yolonas-0.1.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

autodistill_yolonas-0.1.1-py3-none-any.whl (5.5 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