IT Vizag
← Computer Vision in Practice

▶ Sign up free for the video, slides & prompts

The lesson below is open to all. Enter your email once to unlock every video, slide deck, prompt and code example on this device.

Checking…

Computer Vision in Practice · Lesson 13 of 15 · 2 min read · 5 min video

Deploying vision models to edge and mobile

Shrink models with quantisation and run them on phones and small devices.

📄 Download slides (PDF)· free sign-up

Many vision apps can't send every frame to the cloud. It's too slow, too expensive or too private, or there's no internet at all. Edge deployment runs the model on the device itself: a phone, a small computer next to the camera, or the camera.

Why the edge?

  • Speed: no round trip to a server
  • Cost: no per-image cloud charges or video upload bandwidth
  • Privacy: images never leave the device
  • Offline: works in a fishing boat, a farm or a factory without reliable internet

Shrinking the model

  • Pick a small architecture: MobileNet, EfficientNet-Lite or YOLO nano
  • Quantisation: store weights as 8-bit integers instead of 32-bit floats. The model gets about 4× smaller and often 2–3× faster, usually losing only a little accuracy
  • Pruning: remove weights that barely matter
  • Distillation: train a small "student" model to copy a large "teacher" model

Export formats

🔒 Code example: sign up free (above) to unlock it.
  • ONNX: a universal format, run with ONNX Runtime
  • TensorFlow Lite / LiteRT: Android and small devices
  • Core ML: Apple devices
  • TensorRT: NVIDIA Jetson and GPUs, the fastest on that hardware

Edge hardware

  • Phones: modern Android phones and iPhones have neural processors built in
  • Raspberry Pi: cheap. Fine for small models at a few frames per second
  • NVIDIA Jetson: a small GPU board for real-time detection on several cameras
  • Coral and Hailo accelerators: low-power add-ons for fast integer models

Test on the real device

Always measure accuracy and speed after conversion, on the target device. Quantisation can hurt some classes more than others, so compare per-class results before and after.

Tip: Keep a small set of test images on the device and run them at every app update. It catches broken exports before users do.

In one line

Edge deployment runs vision models on the device for speed, privacy and offline use, using small architectures, quantisation and the right export format, tested on the real hardware.

Saved on this device. Sign in to keep progress everywhere.

Share with a friend