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 StudioGoal
By the end of this page you will have downloaded a deployment package for your trained model.
Steps
- Open Deployment in the left menu.
- Under Select target device, choose your device:
| Device in Studio | Package 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 |
- Check the Model summary: platform, package, precision and impulse.
- 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.
- Look at the estimates (Flash, Peak RAM, Latency) where Studio can calculate them.
- Select Build Deployment Package (it shows the device name, for example Build for Raspberry Pi).
- 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.
.pepackages: a small Python inference script..pxepackages: 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.