Skip to content
PetalEdgeDocs

Model Deployment

Deploying an Image model

Choose a device and a precision, then build and download a package for your trained Image model.

Try it in Studio
On this page

Goal

By the end of this page you will have downloaded a deployment package for your trained model.

Steps

  1. Open Deployment in the left menu.
  2. Under Select target device, choose your device:
Device in StudioPackage Studio builds
Generic tf lite.pe package for TensorFlow Lite, to run with Python on a computer or a Linux board
Raspberry Pi.pxe package with its own runner
Arduino UNO Q.pxe package with its own runner
  1. Check the Model summary: platform, package, precision and impulse.
  2. Under Precision, pick Unoptimized (float32) or Quantized (int8). Studio marks one option Recommended and shows its score next to each option. See Choosing Float32 or INT8.
  3. Look at the estimates (Flash, Peak RAM, Latency) where Studio can calculate them.
  4. Select Build Deployment Package (it shows the device name, for example Build for Raspberry Pi).
  5. When the build is finished, select Download Latest Build.

Past builds are listed in Build history. Use Refresh Status to update a running build, or Cancel build to stop it.

FaceRec-Edge packages

A FaceRec-Edge model is packaged differently: the package is a ZIP file with manifest.json, detector.onnx and recognizer.onnx. There is no precision choice for this model.

What is inside a package?

  • The trained model file.
  • A list of your labels.
  • The image size and processing settings the model expects.
  • .pe packages: a small Python inference script.
  • .pxe packages: a runner program for the device.

Before Studio offers a package, it checks that the package opens and that the model gives an answer on a test input.

What next?