This is an old revision of the document!
sudo apt install libopencv-dev python3-opencv
NPU Demo is not installed on the board by default. You need to download it from github first
1) Clone to the board through the git command.
cd {workspace} git clone --recursive https://github.com/khadas/aml_npu_demo_binaries
2) Or download the compressed package directly, and then unzip it to the board.
There are three directories in NPU Demo:
$ cd {workspace}/aml_npu_demo_binaries/inceptionv3 $ ls dog_299x299.jpg goldfish_299x299.jpg imagenet_slim_labels.txt VIM3 VIM3L
If your board is VIM3, enter the VIM3 directory, if it is VIM3L, then enter the VIM3L directory. Here is VIM3 as an example.
$ cd {workspace}/aml_npu_demo_binaries/inceptionv3/VIM3 $ inceptionv3 inception_v3.nb run.sh $ cd {workspace}/aml_npu_demo_binaries/inceptionv3/VIM3 $ ./run.sh Create Neural Network: 59ms or 59022us Verify... Verify Graph: 0ms or 739us Start run graph [1] times... Run the 1 time: 20.00ms or 20497.00us vxProcessGraph execution time: Total 20.00ms or 20540.00us Average 20.54ms or 20540.00us --- Top5 --- 2: 0.833984 795: 0.009102 974: 0.003592 408: 0.002207 393: 0.002111