Advanced level · Module 9 of 10 · 17 guided hours
Computer Vision Model Deployment
Turning trained models into reliable services: exporting to ONNX, running ONNX Runtime on CPU, building a FastAPI image service, validating inputs, documenting with model cards and monitoring in use.
Learning objectives
- Export PyTorch and YOLO models to ONNX and verify them
- Serve vision models with ONNX Runtime and FastAPI
- Document and monitor deployed vision systems
Topics
- exporting to ONNX
- verifying exported models
- ONNX Runtime inference on CPU
- image services with FastAPI
- model cards for vision
- monitoring and feedback
Lessons
-
Lesson 1 Exporting Models to ONNX
Learners export a PyTorch classifier and a YOLO detector to ONNX and verify that outputs match the original models.
ONNX formattorch.onnx.exportUltralytics export(format='onnx')dynamic axesnumerical verification
-
Lesson 2 Serving Vision Models with ONNX Runtime and FastAPI
Learners build an image-analysis web service: upload an image, run ONNX Runtime on CPU, and return predictions with confidence, timing and an 'uncertain' flag.
onnxruntime.InferenceSessionCPUExecutionProviderUploadFileinput validationlatency logging
-
Lesson 3 Model Cards, Monitoring and Feedback
Learners document their vision model with a model card and design monitoring for confidence, input drift and corrections from users.
model cardconditions testedinput drift (brightness, size, source)confidence monitoringuser corrections
Practical activity
Export, verify and serve the capstone model with ONNX Runtime and FastAPI, and add a model card, monitoring and a feedback procedure.
Expected outcomes
- Reliable deployment of vision models
- Professional documentation and monitoring
Assessment
Deployed service with tests (60%) and model card with monitoring plan (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.