Skip to content

khadas/aml_npu_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

974f844 · Jan 8, 2025

History

32 Commits
Jan 8, 2025
Jan 8, 2025
May 18, 2022
Sep 28, 2021
Sep 28, 2021
Jan 8, 2025
Mar 22, 2022
Apr 15, 2024
Sep 28, 2021
Jan 8, 2025
Apr 15, 2024

Repository files navigation

Clone

$ git clone https://github.com/khadas/aml_npu_sdk.git
$ cd aml_npu_sdk
$ git lfs pull

c/c++ convert tool:

$ cd acuity-toolkit/demo
$ bash ./0_import_model.sh && bash ./1_quantize_model.sh && bash ./2_export_case_code.sh

Case code is in current directory: nbg_unify_xxxxx.

python convert tool:

$ cd acuity-toolkit/python
$ ./convert \
--model-name inception \
--platform tensorflow \
--model /path/to/inception_v3.pb \
--input-size-list '299,299,3' \
--inputs input \
--outputs InceptionV3/Predictions/Reshape_1 \
--mean-values '128 128 128 0.0078125' \
--quantized-dtype asymmetric_affine \
--source-files ./data/dataset/dataset0.txt \
--kboard VIM3 --print-level 1

library and nb file directoty: outputs/inception