Skip to content

xx025/cvmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Computer Vision Model Development toolkit. cvmd uses NumPy arrays as both input and output, aiming to provide a unified and concise model inference interface.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages