Skip to main content
The sample_resnet101 sample application classifies images using a ResNet-101 model with ROS 2 nodes. It uses Qualcommยฎ AI Engine Direct SDK (QNN) for model inference. resnet101 is a machine learning model that can classify images from the ImageNet dataset. It also serves as the basis for building more advanced models tailored to specific use cases.
NoteFor more information, see sample_resnet101 on GitHub.

Figure: Sample effects of sample_resnet101

Pipeline flow for sample_resnet101

Figure: Pipeline flow for sample_resnet101

ROS nodes used in sample_resnet101

ROS topics used in sample_resnet101

NoteThe preprocess node subscribes to image_raw. With launch_with_qrb_ros_camera.py this subscription is remapped to /cam0_stream1; with launch_with_image_publisher.py it keeps the default /image_raw.

Prerequisites

You have completed the settings in Set up the environment for running sample applications.

Run out-of-the-box sample_resnet101

1

Run the sample on the development kit

SSH Session
2

Check the classification result on the host computer

SSH Session

Build and run sample_resnet101

The following steps build the sample_resnet101 package using Dragonwing IQ-9075 Evaluation Kit as an example.
1

Build and package on the host computer

  1. Build the sample application project.
  2. Package and push the sample application to the device.
2

Install and run on the development kit

  1. Install the sample application.
    SSH Session
  2. Run the sample application with the steps in Run out-of-the-box sample_resnet101.