Skip to main content

Mobilint Vision Python

Run pre-trained Mobilint Vision models from Python. mblt-vision-python provides model configuration, artifact loading, preprocessing, inference integration, and typed postprocessing results for image classification, depth estimation, face and object detection, OBB, instance and semantic segmentation, and pose estimation.

Version 0.0.0 is the initial standalone release.

Installation

PyPI - Version PyPI Downloads PyPI - Python Version

pip install mblt-vision-python

MXQ inference requires a supported Mobilint NPU environment. Model artifacts are downloaded from the Mobilint Hugging Face organization when no local model_path is supplied. For ONNX execution, install one of the optional extras:

pip install "mblt-vision-python[onnxruntime]"
# Or, on supported systems:
pip install "mblt-vision-python[onnxruntime-gpu]"

Quick start

Most models include matching preprocess/postprocess behavior around a raw call (mask generation is the exception -- see below):

from mblt_vision import ResNet50

model = ResNet50()
x = model.preprocess("image.jpg")
result = model.postprocess(model(x))

For configurable model selection and local MXQ or ONNX artifacts, use MBLT_Engine:

from mblt_vision import MBLT_Engine

model = MBLT_Engine(model_cls="resnet50", model_type="DEFAULT")
try:
    result = model.postprocess(model(model.preprocess("image.jpg")))
finally:
    model.dispose()

Discover supported tasks and models with list_tasks() and list_models(). New code should use the task subpackages (for example, mblt_vision.object_detection) or MBLT_Engine. Top-level model imports such as from mblt_vision import ResNet50 remain supported for convenience.

obb is the canonical oriented-bounding-box task name.

Mask generation is promptable, so SAM2HieraLarge takes point prompts and returns candidate masks from a single predict() call instead of the separate preprocess/raw-call/postprocess steps above:

from mblt_vision.mask_generation import SAM2HieraLarge

model = SAM2HieraLarge()  # framework="onnx" for ONNX Runtime inference
result = model.predict("image.jpg", points=[[320, 240]], labels=[1])

See the mask generation section for the prompt contract, the two-artifact layout, and SA-V validation.

Model Zoo migration

Vision is now maintained in this package. mblt-model-zoo retains mblt_model_zoo.vision as a compatibility facade for existing applications; new projects should import from mblt_vision directly. Its mblt-model-zoo predict, val, and compile commands also delegate to this package.

Command line

The standalone package provides the mblt-vision command with predict, val, and compile subcommands:

mblt-vision predict --source image.jpg --model resnet50

predict is the single inference command for classification, depth estimation, object and face detection, instance and semantic segmentation, OBB, pose estimation, and point-prompted mask generation. The selected model determines its task and processing pipeline. By default it downloads the model artifact and saves a plotted result under runs/vision/predict/. Use --output to choose the result-image path, --topk for classification labels, and --conf-thres/--iou-thres for detection-style tasks. --framework onnx selects ONNX Runtime inference; --target-device and --core-mode select the MXQ board/runtime mode.

Mask generation models require 1-3 point prompts (--point X,Y,LABEL, where LABEL is 1 for positive and 0 for negative) and load two artifacts, overridden with --encoder-mxq-path/--decoder-mxq-path (or the --encoder-onnx-path/ --decoder-onnx-path pair) rather than --model-path/--mxq-path/--onnx-path.

mblt-vision predict --source image.jpg --model yolo11m --conf-thres 0.4 --output result.jpg
mblt-vision predict --source image.jpg --model yolo11m-pose --target-device regulus-ra --core-mode single
mblt-vision predict --source image.jpg --model sam2-hiera-large --point 320,240,1

The corresponding mblt-model-zoo commands use the same standalone handlers for backward compatibility.

Documentation and tests

See the Vision API guide for supported model families, model details, artifact selection, and output taxonomy behavior. See the compilation guide for calibration-data preparation and MXQ compilation. The test guide explains offline, Hugging Face, and NPU test runs.

Support and issues

For installation, model, or runtime support, visit the Mobilint forum. Report reproducible package issues in the mblt-vision-python issue tracker.

License

Distributed under the BSD 3-Clause License.

Release files for mblt-vision-python 0.0.3

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

Source distribution (sdist)

Source distribution for mblt-vision-python 0.0.3
File Size Uploaded
mblt_vision_python-0.0.3.tar.gz 327.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mblt-vision-python 0.0.3
File Interpreter ABI Platform
mblt_vision_python-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 730.7 kB

Release files / mblt_vision_python-0.0.3.tar.gz

Download URL mblt_vision_python-0.0.3.tar.gz
Size 327.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4a00621cb6c5d2cc241c0f6304b1a75deef10c3d7f07c6a91b55d9312fb6a9c7
BLAKE2b-256 checksum
How to use checksums
bcb5b9d6cb71ee4dd6c90975b750f269d8a3f7b2921e6d3c15b37a251eb7fce1
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 3, 2026.

Transparency log

Release files / mblt_vision_python-0.0.3-py3-none-any.whl

Download URL mblt_vision_python-0.0.3-py3-none-any.whl
Size 403.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6537368828e7dfe9d8f5cf6e815183aea2cc388ce2b5cb59b46ec273049cb85a
BLAKE2b-256 checksum
How to use checksums
3192ee6d6b428d3d30e0dddabb907342ccc178bf8f4ffa79fd79f229bfd7e1b3
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.4

2 release files

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

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