Skip to main content

A Standard Model Conversion Test

Navigation bar


Download the Model​

You can download the model recommended by the official SNPE documentation for conversion testing.

https://github.com/onnx/models/blob/main/Computer_Vision/inception_v3_Opset16_timm/inception_v3_Opset16.onnx

mkdir models && cd models
wget https://media.githubusercontent.com/media/onnx/models/refs/heads/main/Computer_Vision/inception_v3_Opset16_timm/inception_v3_Opset16.onnx

snpe14

Download the model first


Start Conversion​

## Set environment variables
export SNPE_ROOT=/opt/qcom/aistack/qairt/2.22.6.240515/
## Import environment
source ${SNPE_ROOT}/bin/envsetup.sh
## Activate the snpe virtual environment
source snpe/bin/activate

snpe15

Setting up environment and conversion commands

Run the following command to generate the inception_v3.dlc model:

${SNPE_ROOT}/bin/x86_64-linux-clang/snpe-onnx-to-dlc --input_network ~/models/inception_v3_Opset16.onnx --output_path ~/models/inception_v3_Opset16.dlc --input_dim 'x' 1,3,299,299

snpe16

Conversion successful

AI Translation Notice

This page was translated into English by AI and is provided for reference only. The original document is written in Chinese. If there is any discrepancy, the Chinese version prevails.

本页英文内容由 AI 自动翻译生成,仅供参考;原文为中文,如有差异请以中文原文为准。

查看中文原文 / View the Chinese original →