Skip to main content

CVMD

CVMD Hero

中文文档

One unified inference interface for deployment-ready vision models.

Why CVMD

Use one consistent inference interface across multiple vision model families, without dragging training code into deployment.

  • One API for multiple model families: run YOLO and DETR-style models with the same model(image) workflow.
  • TorchScript-first deployment: load export-ready weights directly and keep inference environments lean.
  • Easy to adopt, easy to scale: start from simple single-image inference, then extend to sliding-window or Ray-based distributed pipelines.

Installation

pip install cvmd

Quick Start

import imageio.v3 as iio
from cvmd import build

model = build("yolov11det", weights="yolo11l.torchscript", device="cuda")
model.load_model()

image = iio.imread("image.jpg")
results = model(image)
# results: [x1, y1, x2, y2, confidence, class]

Supported Models

Model Series Task Registered Names
YOLOv12 Detection / Segmentation yolov12det, yolov12seg
YOLOv11 Detection / Segmentation yolov11det, yolov11seg
YOLOv8 Detection / Segmentation yolov8det, yolov8seg
YOLOv5 Detection / Segmentation yolov5det, yolov5seg
DETR Detection detrdet
RF-DETR Detection rfdetrdet
Deformable DETR Detection deformabledetrdet

Core API

  • build(model_name_or_cls, **kwargs): build a model instance by name or class.
  • list_models(): list registered model names.
  • register_model(*names): register a custom model class.

Detection models return:

# np.ndarray, shape=(N, 6)
# [x1, y1, x2, y2, confidence, class]

Segmentation models return:

# (detections, masks)
# detections: np.ndarray, shape=(N, 6)
# masks: np.ndarray, shape=(N, H, W)

More Docs

Development

git clone <this repository>
cd cvmd
uv sync --dev

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cvmd-0.1.3.tar.gz (32.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cvmd-0.1.3-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file cvmd-0.1.3.tar.gz.

File metadata

  • Download URL: cvmd-0.1.3.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cvmd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 453e222adf3550845f6a91fb8a885a6f2932b663aa358f4d9146f6d51fdfbe2d
MD5 58b555b3d857210dc019ae6a4c64f123
BLAKE2b-256 83a9edbed1e2d7f809582d80aa1ca82ec021cfa0e591d6f7e2bf68553b5b2ae5

See more details on using hashes here.

File details

Details for the file cvmd-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cvmd-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cvmd-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bd28385255afbea40eaac101584e177f53bd61b2bb6cc74383ed9455e4b9ac13
MD5 09ff678268f76184f8bbb90d715c4cb3
BLAKE2b-256 58e808b0ad48a94e07d6419d0e94e4b7819cd8eaed6d7442119a55a566283af3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page