This release is a pre-release and may not be stable for production use.
ml-pipes-ultralytics
Ultralytics is the open-source
repository behind the YOLO computer-vision framework. It provides model
training, validation, prediction, tracking, export, and native Results
objects for detection, segmentation, pose, classification, and oriented-box
tasks.
ml-pipes-ultralytics makes its prediction, embedding, tracking, and result
operations composable ml-pipes
operators. Native Ultralytics models and Results remain intact at the
boundary, while pipeline configuration and data flow become explicit.
Coverage
The package operator catalog is maintained in docs/reference.md. The Ultralytics API comparison is in docs/coverage.md.
Install
python -m pip install ml-pipes-ultralytics
License and Ultralytics terms
ml-pipes-ultralytics is licensed under the Apache License 2.0.
It requires Ultralytics, which is
licensed separately under AGPL-3.0 or an Ultralytics Enterprise
License. Installing or using this package
does not grant rights to Ultralytics software or model weights. Users of the
community Ultralytics distribution must comply with AGPL-3.0; Enterprise users
must ensure their Ultralytics agreement covers their intended use.
Quickstart
Build a segmentation-and-annotation pipeline. The model configuration belongs
to yolo.Predict; the pipeline call receives only the BGR image.
import cv2
from ml_pipes.core import Pipeline
from ml_pipes.standard import Select
from ml_pipes.ultralytics import results, yolo
pipeline = Pipeline(
[
yolo.Predict(model="yolo26n-seg.pt", conf=0.25),
Select(0),
results.Plot(color_mode="instance"),
]
)
image = cv2.imread("photo.jpg")
annotated = pipeline(image)
cv2.imwrite("annotated.jpg", annotated)
yolo.Predict, yolo.Embed, and yolo.Track accept normal Ultralytics
source types—paths, URLs, camera sources, in-memory images, tensors, and
batches—but do not support stream=True. For videos or large datasets, use a
pipeline that explicitly owns decoding, batching, and frame scheduling.
Built with Ultralytics x ml-pipes
View runnable Ultralytics example pipelines
| Example | Upstream source | Note |
|---|---|---|
run_detect_and_crop.py |
Object Cropping | Detects objects, saves native result crops, and renders the annotated image. |
run_segment_and_annotate.py |
Instance Segmentation and Tracking | Runs segmentation and renders instance-coloured masks. |
run_object_blurrer.py |
Object Blurring | Tracks and blurs COCO person detections. |
run_detection_video.py |
Ultralytics predict mode | Uses an explicit OpenCV capture loop and one non-streaming prediction pipeline call per frame. |
run_track_objects.py |
Ultralytics track mode | Preserves native tracker state and draws native tracking IDs plus explicit motion traces. |
For additional YOLO examples and broader computer-vision use cases, see ml-pipes-supervision.
Release files for ml-pipes-ultralytics 0.1.2rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ml_pipes_ultralytics-0.1.2rc1.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ml_pipes_ultralytics-0.1.2rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / ml_pipes_ultralytics-0.1.2rc1.tar.gz
| Download URL | ml_pipes_ultralytics-0.1.2rc1.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ab24937c55c15dabfd58e2a6c1920a9d9f8a54ec3d3f24bca18a2f5564e3ae0
|
|
BLAKE2b-256 checksum How to use checksums |
12cc8675c62f5916e14685348254a340747548f603c5590798c6622b28736dc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / ml_pipes_ultralytics-0.1.2rc1-py3-none-any.whl
| Download URL | ml_pipes_ultralytics-0.1.2rc1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c80c04274baa35afef61a6547edca31e6b09307db3564f25000b48f8f528f4a3
|
|
BLAKE2b-256 checksum How to use checksums |
22c96d2f0785859c8971da0ef04fdefa24642b36735beafb993c3d37c777be7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency log