Use a custom-trained YOLOv8 LiteRT model
Qualcomm IM SDK reference applications use the YOLOv8 model for object detection. This example explains how to run a custom-trained YOLOv8 variant with the current reference application. To run your own custom-trained YOLOv8 model, complete the following steps:- Replace the existing model with your new model in the reference application.
- Update the label files with your custom labels.
- Run the reference application with the updated model.
Update the label files
The Qualcomm IM SDK reference applications expect labels in JSON format. Update theid, color, and label values for each entry in the labels file.
The format for each label entry is:
Run object detection with the custom model
To run object detection using the LiteRT runtime with your custom model and label files, complete the following steps:-
On the host computer, set the user environment variable:
-
Copy the model to the device:
-
Copy the label file to the device:
-
Sign in to the device using SSH:
-
Edit the
/etc/configs/config_detection.jsonconfiguration file: -
Run the sample application:
Notes
-
To display all available options, run:
-
To stop the application, press
Ctrl+C.

