Forums - Qualcomm AI Stack Stable Diffusion Demo

1 post / 0 new
Qualcomm AI Stack Stable Diffusion Demo
1826133674
Join Date: 19 Oct 23
Posts: 1
Posted: Wed, 2024-06-26 03:15

 

In our attempt to deploy the Qualcomm AI Stack Stable Diffusion Demo, we found that in the example provided at https://docs.qualcomm.com/bundle/publicresource/topics/80-64748-1/model_prep_linux.html, the target platform for generating the QNN model library is x86_64-linux. However, when we followed this process to compile and generate the context binary file, we discovered that this binary file could not be loaded and run for inference on the aarch64_android Snapdragon 8Gne2 smartphone. The error encountered was:

Create From Binary failure.

The command executed originated from: https://docs.qualcomm.com/bundle/publicresource/topics/80-64748-1/model_execution_android.html

If we changed the target platform for generating the QNN model library to "aarch64_android", it would then get stuck during the generation of the context binary.

We are using AI Engine version 2.19, and for quantizing the SD model, AIMet version 1.31.0 was employed.

Refer to the following commands for guidance:

ai_engine_2.19/bin/x86_64-linux-clang/qnn-context-binary-generator --model ai_engine_2.19/SD_ori/converted_text_encoder/aarch64-android/libtext_encoder.so --backend libQnnHtp.so --output_dir ai_engine_2.19/SD_ori/serialized_binaries --binary_file text_encoder.serialized --config_file ./tmp/htp_backend_extensions.json --log_level verboseai_engine_2.19/bin/x86_64-linux-clang/qnn-context-binary-generator --model ai_engine_2.19/SD_ori/converted_text_encoder/aarch64-android/libtext_encoder.so --backend libQnnHtp.so --output_dir ai_engine_2.19/SD_ori/serialized_binaries --binary_file text_encoder.serialized --config_file ./tmp/htp_backend_extensions.json --log_level verboseai_engine_2.19/bin/x86_64-linux-clang/qnn-context-binary-generator --model ai_engine_2.19/SD_ori/converted_text_encoder/aarch64-android/libtext_encoder.so --backend libQnnHtp.so --output_dir ai_engine_2.19/SD_ori/serialized_binaries --binary_file text_encoder.serialized --config_file ./tmp/htp_backend_extensions.json --log_level verbose

 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.