Skip to content

robowork/aml_npu_sdk

 
 

Repository files navigation

Clone

Clone with submodules

git clone --recursive [email protected]:robowork/aml_npu_sdk.git

update submodules (This process takes a few minutes)

git submodule init
git submodule update

Create environment and install dependencies

cd aml_npu_sdk &&
conda env create -f npu_convert.yml &&
conda activate npu
```

## Using python convert tool (recommended)
Navigate to the relevant directory

```
cd acuity-toolkit/python
```

Converte tool usage:

```
./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`


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`.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 72.0%
  • C++ 27.7%
  • Other 0.3%