Forums - qnn-model-lib-generator ERROR

3 posts / 0 new
Last post
qnn-model-lib-generator ERROR
2667199938
Join Date: 29 May 24
Posts: 6
Posted: Wed, 2024-05-29 00:33
(py310) PS C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc> python qnn-model-lib-generator -c C:\Users\26671\Desktop\Qualcomm\best.cpp -b C:\Users\26671\Desktop\Qualcomm\best.bin -t windows-x86_64 -o model_libs 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Model cpp file path : C:\Users\26671\Desktop\Qualcomm\best.cpp 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Model bin file path : C:\Users\26671\Desktop\Qualcomm\best.bin 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Library target : [['windows-x86_64']] 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Library name : best 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Output directory : model_libs 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Build type : Release 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Clean-up : False 2024-05-29 15:27:50,382 - INFO - qnn-model-lib-generator: Output library name : best 2024-05-29 15:27:50,407 - INFO - qnn-model-lib-generator: Converting raw files to object files starts 2024-05-29 15:27:50,545 - INFO - qnn-model-lib-generator: Extracted raw files from C:\Users\26671\Desktop\Qualcomm\best.bin to obj\binary 2024-05-29 15:30:04,431 - INFO - qnn-model-lib-generator: Converted raw files to object files successfully Exception in thread Thread-307 (_readerthread): Traceback (most recent call last): File "C:\Users\26671\.conda\envs\py310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\26671\.conda\envs\py310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\Users\26671\.conda\envs\py310\lib\subprocess.py", line 1499, in _readerthread buffer.append(fh.read()) File "C:\Users\26671\.conda\envs\py310\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd3 in position 1480: invalid continuation byte 2024-05-29 15:30:30,414 - INFO - qnn-model-lib-generator: Generated model library path: C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc\model_libs\x64\best.dll 2024-05-29 15:30:30,414 - INFO - qnn-model-lib-generator: Target: windows-x86_64 Library: C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc\model_libs\x64\best.dll
  • Up0
  • Down0
2667199938
Join Date: 29 May 24
Posts: 6
Posted: Wed, 2024-05-29 00:34
(py310) PS C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc> python qnn-model-lib-generator -c C:\Users\26671\Desktop\Qualcomm\best.cpp -b C:\Users\26671\Desktop\Qualcomm\best.bin -t aarch64-android -o model_libs --clean_up 2024-05-29 15:33:46,215 - INFO - qnn-model-lib-generator: Model cpp file path : C:\Users\26671\Desktop\Qualcomm\best.cpp 2024-05-29 15:33:46,215 - INFO - qnn-model-lib-generator: Model bin file path : C:\Users\26671\Desktop\Qualcomm\best.bin 2024-05-29 15:33:46,215 - INFO - qnn-model-lib-generator: Library target : [['aarch64-android']] 2024-05-29 15:33:46,215 - INFO - qnn-model-lib-generator: Library name : best 2024-05-29 15:33:46,215 - INFO - qnn-model-lib-generator: Output directory : model_libs 2024-05-29 15:33:46,215 - INFO - qnn-model-lib-generator: Build type : Release 2024-05-29 15:33:46,215 - INFO - qnn-model-lib-generator: Clean-up : True Traceback (most recent call last): File "C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc\qnn-model-lib-generator", line 488, in main() File "C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc\qnn-model-lib-generator", line 482, in main result = generator.build_targets(config) File "C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc\qnn-model-lib-generator", line 386, in build_targets self._normalize_config(config) File "C:\Qualcomm\AIStack\QAIRT\2.22.6.240515\bin\x86_64-windows-msvc\qnn-model-lib-generator", line 374, in _normalize_config raise ValueError(f'Unsupported target(s): {",".join(invalid_targets)}') ValueError: Unsupported target(s): aarch64-android
  • Up0
  • Down0
2667199938
Join Date: 29 May 24
Posts: 6
Posted: Wed, 2024-05-29 00:36

I feel like my version is too new to support aarch64 android.

I don't know why it can't run on the WIndows platform either

  • Up1
  • Down0
or Register

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.