Cv Inference Deployment
ASecurityExport, optimize and deploy computer vision models for inference, and prove the deployed model still matches the trained one. Use when exporting to ONNX, TensorRT, OpenVINO, TFLite, CoreML or TorchScript; quantizing to FP16 or INT8; writing pre- and post-processing such as resize, letterbox, normalization, colour order or NMS; building an inference script, REST API, video pipeline or edge app; benchmarking latency, FPS, throughput or memory; or debugging accuracy that dropped after export. No...
- 19 stars
- 0 votes
- 0 copies
- 1 view
- Added November 29, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add khoavd18/skills --skill cv-inference-deployment --agent claude-codeAre you the author of Cv Inference Deployment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/khoavd18-cv-inference-deployment)---
name: cv-inference-deployment
description: Export, optimize and deploy computer vision models for inference, and prove the deployed model still matches the trained one. Use when exporting to ONNX, TensorRT, OpenVINO, TFLite, CoreML or TorchScript; quantizing to FP16 or INT8; writing pre- and post-processing such as resize, letterbox, normalization, colour order or NMS; building an inference script, REST API, video pipeline or edge app; benchmarking latency, FPS, throughput or memory; or debugging accuracy that dropped after export. Not for training or fine-tuning (use cv-model-training) or for choosing evaluation metrics (use ml-model-evaluation).
---
# CV Inference Deployment
Moves a model from training weights to a running inference path without silently losing accuracy, and measures speed honestly.
## Inputs
- Trained weights with their evaluation report, and the training-time preprocessing.
- Target runtime and hardware (server GPU, CPU, Jetson, phone, browser). Latency, throughput and memory budgets are `UNKNOWN` until stated.
## Procedure
1. **Detect the stack**: source framework and version, existing export or serving code, target runtime and its version, hardware. Reuse the project's tooling.
2. **Freeze a reference**: a fixed set of validation images (not test), the original model's raw outputs and decoded detections for them, and the original metric.
3. **Export explicitly**: input size, batch and dynamic axes, opset or target version, precision, NMS inside or outside the graph. Record the exact command or script.
4. **Parity check in three levels** (checklist in [export-parity-checklist.md](references/export-parity-checklist.md)): raw tensors (max absolute difference), decoded detections (matched boxes and scores), then the metric on the validation set. State the tolerance before comparing.
5. **Preprocessing parity**: colour order (RGB vs BGR), resize vs letterbox and padding value, normalization, dtype, layout (NCHW vs NHWC), EXIF orientation. Most "the exported model is worse" bugs live here.
6. **Quantization**: FP16 first. INT8 needs a representative calibration set from training or validation data, never test. Report the accuracy change overall and per class.
7. **Benchmark** with [benchmarking.md](references/benchmarking.md): warmup, enough iterations, p50/p95 latency, model-only vs end-to-end, and the full hardware and software description.
8. **Serve**: validate inputs (type, size, count), set timeouts, return the model version with predictions, log metadata rather than images unless storage is permitted, and keep a rollback to the previous model.
9. Hand the exported artifact to **ml-model-evaluation** for a final metric check when the risk tier requires it.
## Rules
- A successful export or a running demo is not evidence of accuracy. Parity must be measured.
- Never compare speeds measured on different hardware, input sizes, batch sizes or precisions.
- Do not claim real-time unless the end-to-end p95 meets a stated budget on the target device.
- Keep credentials for registries and endpoints out of code and images; ask before deploying to shared or production environments.
- Parity depth follows the risk tier in the [ML quality contract](../ml-model-evaluation/references/ml-quality-contract.md).
## Outputs
The exported model with its export record, inference code with documented pre/post-processing, a parity report, a benchmark table, and deployment notes (runtime versions, rollback).
## Hand-offs
Accuracy problems that exist before export → **ml-model-evaluation** and **cv-model-training**. Data drift found in production samples → **cv-dataset-engineer**.
Files in this skill
- SKILL.md
- references/benchmarking.md
- references/export-parity-checklist.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.