Introduction
This article describes how to deploy a ModelPack model to the Maivin after training, and then run the model on the Maivin.
This article is part of a series of articles documenting the end-to-end workflow for dataset capture, annotation, model training, and deployment back to the Maivin hardware. Refer to Maivin Dataset Overview for more details.
Deployment
- Obtain a new model. This can be done multiple ways
- After training a model, Quantize and Convert the model to RTM
- Downloading a model from ModelPack releases on Github
- Copy the model onto the target
scp ./model.rtm torizon@verdin-imx8mp-XXXXXXXX:~/model.rtm
- Edit the /etc/default/detect file to change the model to the newly copied model
Change the line that has MODEL = "xxxxxxxx" into:
MODEL = "/home/torizon/model.rtm"
- Restart the detect service:
sudo systemctl daemon-reload
sudo systemctl restart detect - Now the detect service is running using the new model!
Next Steps
The EdgeFirst Live Visualizer can be used to view the results of the model live in a web browers
A deployed model's results can be captured with the Maivin Dataset Recorder into the annotation stream. This annotation stream can be published to datasets and audited as part of the model and dataset lifecycle.
Comments
0 comments
Please sign in to leave a comment.