Skip to main content

Mozo

CI PyPI Python License

82 models, and the workflows that run them.

One pip install. No dependency hell. Runs models, executes workflows, and builds them.

Normally each of these models arrives with its own package, and each package brings its own dependencies — torch, numpy and OpenCV, every one pinned to something slightly different. Put a few in one environment and something breaks. The usual escape is a container per model, and paying for that forever.

Mozo ships none of them. Every model's inference path is vendored into mozo itself and verified bit-identical to the original implementation — so one environment runs all 82, and gives you the original's exact numbers rather than something close.

pip install mozo
mozo start

No Docker, no Kubernetes, no per-model build step, no conversion step, no git clone of anything.

Serve from one install, in one process, behind one API.

A model on its own is rarely the job. Detect, then blur the faces, then save — that is a workflow, and mozo runs those too: as a graph you draw in the browser, a JSON file you keep in version control, or one call from Python. Same models, same process, no extra install.

Model Catalog

Object detection

A box, a class and a confidence per object.

Family Variants Weights licence Runtimes
rfdetr nano small medium large Apache-2.0 torch, onnx, coreml
yolov8 nano small medium large xlarge AGPL-3.0 torch, onnx, coreml
yolov11 nano small medium large xlarge AGPL-3.0 torch, onnx
yolov12 nano small medium large xlarge AGPL-3.0 torch, onnx, coreml
yolov26 nano small medium large xlarge AGPL-3.0 torch, onnx

Instance segmentation

A box and a mask per object, from one pass. Same families and same call as detection above — the variant is what decides whether masks come back.

Family Variants Weights licence Runtimes
rfdetr seg-nano seg-small seg-medium seg-large Apache-2.0 torch, onnx, coreml
yolov11 seg-nano seg-small seg-medium seg-large seg-xlarge AGPL-3.0 torch, onnx
yolov26 seg-nano seg-small seg-medium seg-large seg-xlarge AGPL-3.0 torch, onnx

Keypoints

COCO's 17 person joints per detection, as (x, y, confidence) in source-image pixels. RF-DETR finds people and joints in one pass; ViTPose is top-down and takes detections as an argument — details.

Family Variants Weights licence Runtimes
rfdetr keypoint-preview Apache-2.0 torch
vitpose small base large huge Apache-2.0 torch, onnx (not huge)

Text-prompted

Boxes for anything you can name, from a phrase rather than a fixed class list.

Family Variants Weights licence Prompt
grounding_dino tiny base Apache-2.0 descriptions, ≤256 tokens total
owlv2 base base-ensemble large large-ensemble Apache-2.0 phrases, ≤16 tokens
sam3 sam3 SAM License phrases, ≤32 tokens — or a click, as below

Zero-shot classification and embeddings

Name your classes in words and each is scored against the image — or take the vectors instead, and make a corpus embedded once searchable by words afterwards. Scores are similarities, not probabilities — details.

Family Variants Weights licence Prompt Output
clip base base-16 large large-336 MIT phrases, ≤77 tokens each a score per phrase, or 512/768-d vectors
siglip2 base-224 base-256 so400m-384 so400m16-256 giant-384 Apache-2.0 phrases, ≤64 tokens each a probability per phrase, or 768/1152/1536-d vectors

Text embeddings

English text in, one vector out, and texts that mean the same thing land close together: search documentation, notes, or what EasyOCR read off an image, by meaning rather than by keyword. Text only — these vectors do not share a space with CLIP's or SigLIP 2's, so they cannot search pictures by words. Served through /encode alone — details.

Family Variants Weights licence Input Output
granite_embedding_r2 small Apache-2.0 text, ≤8,192 tokens each 384-d vectors

Promptable segmentation

A mask from a click or a box. Returns detections, one row per mask.

Family Variants Weights licence Prompt
sam2 tiny small base_plus large Apache-2.0 points, box, or both
edgetam edgetam Apache-2.0 points, box, or both
sam3 sam3 SAM License points, box, or both

Text recognition

Text in the image, one detection per line. A variant is a script, not a language: latin alone covers 41 languages.

Family Variants (scripts) Weights licence
easyocr english latin chinese-simplified japanese korean Apache-2.0

Depth

An HxW float32 map. Six of the nine variants predict metres and three are relative and unitless; model.unit says which, and is None rather than a guess.

Family Variants Weights licence Unit
depth_anything_v2 small Apache-2.0 relative, unitless
base large CC-BY-NC-4.0 relative, unitless
indoor- and outdoor-, three sizes each Apache-2.0 metres

Background removal

A per-pixel opacity matte, not a binary mask — which is the difference between keeping a head of hair and cutting it off. Details.

Family Variants Weights licence Output
ben2 base MIT an HxW uint8 alpha matte

Object removal

Give it a frame and a mask and it repaints the hole so the thing was never there — pair the mask with SAM 3 or EdgeTAM. It answers with a sample rather than an estimate — details.

Family Variants Weights licence Output
moebius general places2 Apache-2.0 an HxWx3 image

How each family behaves and why — OWLv2 suppressing nothing, the encoder cache, EasyOCR's line ordering, prompt semantics — is on each family's page under docs/models/.

Install

pip install mozo

That is the whole install — twelve ordinary dependencies, not one of them a model package.

# Optional runtimes, for the families that publish those artifacts
pip install 'mozo[onnx]'     # onnxruntime
pip install 'mozo[coreml]'   # coremltools, macOS only

No family needs an extra. The extras add ways to execute a model, not models: without them runtime="auto" simply does not select those artifacts.

Using it

Three interfaces over the same models, plus two browser pages.

HTTP server serve models to other machines, or to a language that is not Python
Python API build a pipeline, a script or a notebook, in-process
Workflows wire models and image operations into a graph, and run it headless
Workflow editor draw the graph, run it, watch each node finish

1. HTTP server

mozo start
curl -X POST "http://localhost:8000/predict/rfdetr/medium" -F "file=@street.jpg"
[
  {"bbox": [0.0, 113.24, 763.19, 1269.33], "class_name": "person", "confidence": 0.917},
  {"bbox": [709.0, 773.0, 1366.0, 1143.0], "class_name": "laptop", "confidence": 0.854}
]

Trimmed for reading. The real response carries every PixelFlow field on every detection — masks, segments, text, class_id, metadata and the rest — including the ones that are null, because masks: null beside a filled segments is a difference worth being able to see.

The catalogue is answerable without loading anything:

curl http://localhost:8000/models          # all 82, no torch import, no weights
curl http://localhost:8000/models/loaded   # what is resident right now

Every route and parameter is in the HTTP API reference, and the server documents itself at http://localhost:8000/docs.

2. Python API

import mozo

model = mozo.get_model("rfdetr/medium")

for found in model.predict("street.jpg"):
    print(found.class_name, found.confidence, found.bbox)
#   person 0.92 [0.0, 113.24, 763.19, 1269.33]
#   laptop 0.85 [709.0, 773.0, 1366.0, 1143.0]

predict takes a path, encoded bytes, or an RGB array, and returns a unified PixelFlow Detections — iterable, indexable, and the same shape from every family here.

# Ask for something in words
model = mozo.get_model("owlv2/base-ensemble")
found = model.predict("kitchen.jpg", ["kettle", "a mug", "the window"])
found[0].class_name          # 'kettle' — the phrase you searched for

# Read the text on a sign
model = mozo.get_model("easyocr/english")
found = model.predict("sign.jpg")
found[0].text                # 'EXIT 42' — what it says
found[0].class_name          # None — OCR reads content, it does not pick a class

# Measure depth
model = mozo.get_model("depth_anything_v2/indoor-small")
depth = model.predict("room.jpg")    # HxW float32, at the input's resolution
model.unit                           # 'metres' — or None, and then it is not a distance

3. Workflows

A workflow is a graph of nodes in a JSON file. Draw it at /workflow, or write it by hand; run it from Python, from the command line, or over HTTP. The editor also mounts into a page of your own, and the routes into your own FastAPI app — see docs/workflows/editor.md.

The mozo workflow UI

from mozo.workflow import Workflow

results = Workflow.load("blur_faces.json").run(source="street.jpg")
mozo run blur_faces.json --file street.jpg

50 nodes: every model family that answers about an image, SAM 2, EdgeTAM and SAM 3 segmenting the boxes another node found, RF-DETR from a checkpoint of your own, tracking objects across a video's frames, the image transforms and annotations PixelFlow provides, and the ends that read images and annotations and write results. A node is an ordinary Python function — its signature is its declaration, so what the editor offers you and what actually runs cannot disagree:

@node(category="Annotate")
def draw_boxes(image: Image, detections: Detections, thickness: int | None = None) -> Image:
    """Draw a box around each detection."""
    return pf.annotate.box(image.copy(), detections, thickness=thickness)

Connections are typed. A port carrying detections cannot be wired into one that takes an image, and the editor refuses it before anything runs. Adding a node is adding a function.

Verification

Vendoring a model normally means maintaining something that quietly drifts from the original. The whole claim above rests on that not happening, so it is checked rather than asserted — with no tolerance. Exact equality, because a tolerance hides precisely the drift a check exists to catch.

The gates in tools/verify/ compare every intermediate stage against the original implementation, not just the final answer: 1,275 comparisons for EasyOCR, 226 for OWLv2, 138 for Grounding DINO, every one identical. Fifteen of the eighteen families ship one; all eighteen have their parity measured and recorded in mozo/vendors/<family>_deploy/PROVENANCE.md, with the upstream commit it was built from.

Because the extraction is the implementation rather than a wrapper around one, none of this costs anything at run time: EasyOCR runs within 1% of the published package on the same weights.

Documentation

Everything below the surface is at emrah.fr/mozo, written in docs/ in this repository:

Installation CUDA, Apple silicon, the ONNX and CoreML runtimes, where weights are cached
Python loading models, reading and drawing results, memory, your own checkpoints
HTTP server serving models, what comes back, prepared images for interactive clicks
Models one page per family: examples, every parameter, how it behaves and why
Workflows the editor, every node, running over videos and folders, writing a node
Deployment configuration, production, runtimes, verification, licences
Reference every public function, route and command

The docs ship with the package, so they always match the version you installed and need no network: the pages are markdown files in mozo/docs/, with an index for coding agents at mozo/docs/llms.txt that lists every page with a one-line summary. To find the folder:

python -c "import importlib.util, os; print(os.path.dirname(importlib.util.find_spec('mozo').origin) + '/docs')"

What mozo does not do

  • No training and no fine-tuning. Bring a checkpoint; mozo runs it.
  • It is not a model hub. The catalogue is a curated 82, chosen because each one could be extracted and verified. Growth is deliberate and slow.

Extending

A workflow node is one Python function: Write a node. A new model family is vendored, verified and published by the process in VENDORING.md; the rule that keeps it honest is that a vendor imports no other vendor and never imports mozo, which tests/test_vendor_agreement.py enforces.

Development

pip install -e .
mozo start --reload
pytest

The workflow editor is a Svelte app in ui/. Its build output is committed, so npm is needed to change it and never to install mozo:

cd ui && npm install && npm run build   # writes mozo/workflow/static/assets/

License

Mozo's own code is Apache-2.0, and so is every vendored extraction under mozo/vendors/.

The weights are separate works travelling with it. Of the 82 published variants, 44 are Apache-2.0, 30 are AGPL-3.0 (every YOLO variant), 5 are MIT (CLIP and BEN2), 2 are CC-BY-NC-4.0 (Depth Anything base and large), and 1 carries Meta's SAM License (SAM 3). The full licence and a NOTICE naming the exact upstream release are published beside every checkpoint.

Which licence a variant is under can be asked before anything is downloaded: mozo.weights.license_of("yolov8", "nano") returns "AGPL-3.0", and GET /models carries the same identifier for every variant it offers.

YOLO weights are AGPL-3.0, or covered by a commercial licence from Ultralytics. And serving predictions from them over a network places AGPL-3.0 section 13 obligations on you.

Complying with either is the operator's responsibility. MOZO_ENABLE is how an instance declines to take it on — a server that never offers a model never fetches or serves its weights:

MOZO_ENABLE=ben2,clip,easyocr,edgetam,granite_embedding_r2,grounding_dino,moebius,owlv2,\
rfdetr,sam2,siglip2,vitpose,depth_anything_v2/small,depth_anything_v2/indoor-small,\
depth_anything_v2/indoor-base,\
depth_anything_v2/indoor-large,depth_anything_v2/outdoor-small,\
depth_anything_v2/outdoor-base,depth_anything_v2/outdoor-large

That is the 49 Apache-2.0 and MIT variants, and it stays 49 through an upgrade that adds families — which a list of what to exclude would not. Depth Anything is named variant by variant because it is the one family whose licence is not uniform: seven of its nine are Apache-2.0 and two are CC-BY-NC-4.0.

Nothing here relicenses anything. It only decides what one deployment hands out.

Metadata

Release files for mozo 1.11.0

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

Source distribution (sdist)

Source distribution for mozo 1.11.0
File Size Uploaded Provenance Actions
mozo-1.11.0.tar.gz 10.2 MB With provenance Details for mozo-1.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mozo 1.11.0
File Interpreter ABI Platform Actions
mozo-1.11.0-py3-none-any.whl Python 3 none any Details for mozo-1.11.0-py3-none-any.whl

Total release size: 20.5 MB

Release files / mozo-1.11.0.tar.gz

Download URL mozo-1.11.0.tar.gz
Size 10.2 MB
Tags Source
SHA-256 checksum
How to use checksums
86f02f2f7da0cd21831fb6d35f2fe59362b21f500a4029549f5673267c695628
BLAKE2b-256 checksum
How to use checksums
dc2773b165fbc58bae6866b6274ca4d54a3e91336e23095143cdaf725ecd1b1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Release files / mozo-1.11.0-py3-none-any.whl

Download URL mozo-1.11.0-py3-none-any.whl
Size 10.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2e9b9457f67578799dac309ff5fbe34a249ec771a2c263cc24744fd02a8130bb
BLAKE2b-256 checksum
How to use checksums
2abef45138881653550813590bb304ecd18799b285f7ce84b29e40b1d084dca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for mozo 1.11.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mozo-1.11.0.tar.gz

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 Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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