# Mozo

> Run 82 computer vision models, and workflows built from them, from one pip install, with the original's exact numbers.

Mozo is a Python package (`pip install mozo`, Python 3.10+). A model is named `family/variant`, the same in Python and over HTTP:

```python
import mozo
detections = mozo.get_model("rfdetr/medium").predict("photo.jpg")   # a PixelFlow Detections
```

```bash
mozo start
curl -X POST http://localhost:8000/predict/rfdetr/medium -F file=@photo.jpg
```

Weights download on first use, are verified by sha256 and cached in ~/.cache/mozo. Detection results are PixelFlow objects (https://emrah.fr/pixelflow/).

These pages ship inside the installed package, matching its version: after `pip install mozo` they are markdown files in `mozo/docs/`, next to this file. A link inside a page such as `/docs/models/rfdetr.md` is the file `mozo/docs/models/rfdetr.md`. To find the folder without importing mozo:

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

## Start

- [Mozo](https://emrah.fr/mozo/): Run 82 computer vision models, and workflows built from them, from one pip install, with the original's exact numbers. File: `index.md`
- [Install mozo on CPU, CUDA or Apple silicon](https://emrah.fr/mozo/installation/): Install mozo with pip, add the optional ONNX or CoreML runtimes, and run it on a CUDA GPU or Apple silicon. File: `installation.md`
- [Run models from Python](https://emrah.fr/mozo/python/): Load any mozo model with get_model, run it, filter and draw its results with PixelFlow, manage memory, and load your own checkpoints. File: `python.md`
- [Serve models over HTTP](https://emrah.fr/mozo/server/): Start mozo's HTTP server, send it images from any language, read what comes back, and check which models it serves. File: `server.md`

## Deployment

- [Configure the cache, downloads and served models](https://emrah.fr/mozo/deployment/configuration/): Every setting mozo reads: where weights are cached, offline mode, a download mirror, which models a server offers, and memory for prepared images. File: `deployment/configuration.md`
- [Run mozo's server in production](https://emrah.fr/mozo/deployment/production/): What to arrange before mozo's server faces real traffic: workers and memory, loading models ahead of time, concurrency, and access control. File: `deployment/production.md`
- [Torch, ONNX and CoreML runtimes](https://emrah.fr/mozo/deployment/runtimes/): Which runtimes each mozo model can run on, how runtime="auto" chooses for your device, and how to pick one yourself. File: `deployment/runtimes.md`
- [How mozo proves it matches the original models](https://emrah.fr/mozo/deployment/verification/): What bit-identical means in mozo, how each model is checked against its original implementation, the few stated exceptions, and how to re-run a check. File: `deployment/verification.md`
- [Model weights and their licences](https://emrah.fr/mozo/deployment/weights-and-licences/): Which licence each model's weights carry, what AGPL-3.0, CC-BY-NC-4.0 and the SAM License ask of you, and how to serve only permissive weights. File: `deployment/weights-and-licences.md`

## Models

- [All 82 models, by task](https://emrah.fr/mozo/models/all-models/): Every model mozo serves, grouped by task, with its variants, weights licence, runtimes and download size. File: `models/all-models.md`
- [BEN2: background removal with a soft matte](https://emrah.fr/mozo/models/ben2/): BEN2 in mozo: remove the background of a photograph with a per-pixel opacity matte that keeps hair, or a ready RGBA cut-out. MIT. File: `models/ben2.md`
- [CLIP: classify from words, embed images and text](https://emrah.fr/mozo/models/clip/): OpenAI's CLIP in mozo: score an image against phrases you write, or get the vectors to search images by text. MIT. File: `models/clip.md`
- [Depth Anything V2: depth from one photograph](https://emrah.fr/mozo/models/depth-anything-v2/): Depth Anything V2 in mozo: a depth map from a single image, in metres or relative, at the image's resolution. File: `models/depth-anything-v2.md`
- [EasyOCR: read the text in an image](https://emrah.fr/mozo/models/easyocr/): EasyOCR in mozo: find every line of text in an image and read it, five scripts covering dozens of languages. Apache-2.0, torch. File: `models/easyocr.md`
- [EdgeTAM: segment what you click, on less hardware](https://emrah.fr/mozo/models/edgetam/): Meta's EdgeTAM in mozo: SAM 2's click-and-box segmentation in a 56 MB model, Apache-2.0 code and weights. File: `models/edgetam.md`
- [Granite Embedding R2: search text by meaning](https://emrah.fr/mozo/models/granite-embedding-r2/): IBM's Granite Embedding R2 in mozo: English text in, one 384-d vector out, for searching documents by meaning. Apache-2.0. File: `models/granite-embedding-r2.md`
- [Grounding DINO: detect what you describe](https://emrah.fr/mozo/models/grounding-dino/): IDEA Research's open-vocabulary detector in mozo: boxes for descriptions as well as nouns, Apache-2.0, torch only. File: `models/grounding-dino.md`
- [Moebius: remove an object from a photo](https://emrah.fr/mozo/models/moebius/): Moebius inpainting in mozo: an image and a mask in, the masked object painted out, everything else byte-identical. Apache-2.0. File: `models/moebius.md`
- [OWLv2: detect anything you can name](https://emrah.fr/mozo/models/owlv2/): Google's open-vocabulary detector in mozo: name things in words and get boxes, no class list, Apache-2.0 code and weights. File: `models/owlv2.md`
- [RF-DETR: detection, segmentation and keypoints](https://emrah.fr/mozo/models/rfdetr/): Roboflow's real-time transformer detector in mozo: boxes, masks or person joints, Apache-2.0, on torch, ONNX and CoreML. File: `models/rfdetr.md`
- [SAM 2: segment what you click](https://emrah.fr/mozo/models/sam2/): Meta's Segment Anything 2 in mozo: a click or a box in, the mask of what you pointed at out, Apache-2.0 code and weights. File: `models/sam2.md`
- [SAM 3: masks for a phrase or a click](https://emrah.fr/mozo/models/sam3/): Meta's Segment Anything 3 in mozo: every instance of a phrase with masks, or the mask of one click. SAM License weights. File: `models/sam3.md`
- [SigLIP 2: a score you can threshold, and embeddings](https://emrah.fr/mozo/models/siglip2/): Google's SigLIP 2 in mozo: score one phrase against an image as a yes-or-no probability, or get vectors for image search. Apache-2.0. File: `models/siglip2.md`
- [ViTPose: person keypoints for boxes you already have](https://emrah.fr/mozo/models/vitpose/): ViTPose++ in mozo: give it a frame and person boxes from any detector, get COCO's 17 joints on each. Apache-2.0, torch and ONNX. File: `models/vitpose.md`
- [YOLO11: real-time detection and segmentation](https://emrah.fr/mozo/models/yolov11/): Ultralytics' YOLO11 in mozo: five detection and five segmentation sizes from 6 MB, on torch and ONNX. AGPL-3.0 weights. File: `models/yolov11.md`
- [YOLO12: real-time object detection](https://emrah.fr/mozo/models/yolov12/): Ultralytics' YOLO12 detector in mozo: five sizes from 6 MB, COCO's 80 classes, on torch, ONNX and CoreML. AGPL-3.0 weights. File: `models/yolov12.md`
- [YOLO26: NMS-free detection and segmentation](https://emrah.fr/mozo/models/yolov26/): Ultralytics' YOLO26 in mozo: NMS-free detection and segmentation, five sizes each from 6 MB, on torch and ONNX. AGPL-3.0 weights. File: `models/yolov26.md`
- [YOLOv8: real-time object detection](https://emrah.fr/mozo/models/yolov8/): Ultralytics' YOLOv8 detector in mozo: five sizes from 7 MB, COCO's 80 classes, on torch, ONNX and CoreML. AGPL-3.0 weights. File: `models/yolov8.md`

## Reference

- [Command line reference](https://emrah.fr/mozo/reference/command-line/): The mozo command: start the HTTP server, run a workflow file over its whole source or one test item, and print the version. File: `reference/command-line.md`
- [HTTP API reference](https://emrah.fr/mozo/reference/http-api/): Every route mozo's server offers, with its parameters, what it returns, and its errors: predict, encode, prepare, models and workflows. File: `reference/http-api.md`
- [Python API reference: mozo](https://emrah.fr/mozo/reference/python-api/): Every public name in the mozo package: get_model, unload, clear, configure, ModelManager, the model registry, image helpers and model objects. File: `reference/python-api.md`
- [Weights API reference: mozo.weights](https://emrah.fr/mozo/reference/weights/): Every function in mozo.weights: download ahead of time, check the cache, read licences and revisions, remove files, and watch progress. File: `reference/weights.md`
- [Workflow API reference: mozo.workflow](https://emrah.fr/mozo/reference/workflow-api/): Every public name in mozo.workflow: the Workflow class and its run methods, results and errors, the node decorator, port and parameter types. File: `reference/workflow-api.md`

## Workflows

- [Build a workflow in the editor](https://emrah.fr/mozo/workflows/editor/): Chain models and image operations into a workflow: draw it in mozo's browser editor, keep it as JSON, and embed the editor in your own app. File: `workflows/editor.md`
- [Every built-in workflow node](https://emrah.fr/mozo/workflows/nodes/): All 50 nodes mozo's workflows are built from, by category, with their inputs, outputs, parameters and defaults. File: `workflows/nodes.md`
- [Run a workflow from Python or the command line](https://emrah.fr/mozo/workflows/python/): Run a mozo workflow file from Python, the command line or HTTP: override parameters, run it over many images, check it first, and use your own models. File: `workflows/python.md`
- [Run a workflow over videos and folders](https://emrah.fr/mozo/workflows/video/): Run a mozo workflow over every frame of a video or every image in a folder: sample frames, track objects, and save videos and annotations. File: `workflows/video.md`
- [Write your own workflow node](https://emrah.fr/mozo/workflows/writing-nodes/): Add a node to mozo's workflows by writing one Python function: its signature declares its ports and parameters, and the editor follows. File: `workflows/writing-nodes.md`
