Computer Vision Models Deployment
Project description
CVMD
A TorchScript-first computer vision inference toolkit with a unified NumPy API.
Why CVMD
- One inference interface: use the same
model(image)pattern across YOLO and DETR-style models. - Deployment-oriented: load TorchScript weights directly without carrying training repositories into production.
- Easy model switching: swap architectures with
build(...)while keeping the same input/output convention. - Practical scaling path: start with simple single-image inference, then expand to sliding-window or Ray-based distributed runs when needed.
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 | detr |
| RF-DETR | Detection | rfdetr, rfdetrdetect, rf-detr |
| Deformable DETR | Detection | deformabledetr, deformable_detr, deformable-detr |
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
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(31.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cvmd-0.1.1-py3-none-any.whl
(29.8 kB
view details)
File details
Details for the file cvmd-0.1.1.tar.gz.
File metadata
- Download URL: cvmd-0.1.1.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a71ea18831bd2ce704d3b0c2c8f3a007f080a4ca1e586d516bb25bcc85e1300
|
|
| MD5 |
39726a6362d75dced71b756f426a8afa
|
|
| BLAKE2b-256 |
4f92195e85a9241fdea90183877c98aeb181b414bb6bda23a6aa1f5adcddc286
|
File details
Details for the file cvmd-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cvmd-0.1.1-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ee8fff561018c2abbc643b73ba428a4274d10d7968bc8fa0d65eadbd6a18b69
|
|
| MD5 |
81256b0272899a808ed63aad35fea70c
|
|
| BLAKE2b-256 |
fbd05583f30b78f21f63ef8ba9069613b073b8c07c0b6e5f9e16669a65847982
|