Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:npu:ksnn:ksnn-usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
products:sbc:vim3:npu:ksnn:ksnn-usage [2023/09/10 05:40]
hyphop [Camera Demo]
products:sbc:vim3:npu:ksnn:ksnn-usage [2023/12/21 01:29]
louis
Line 4: Line 4:
 ====== KSNN Usage ====== ====== KSNN Usage ======
  
-This article shows VIM3 NPU usage examples through **KSSN** - Python API.+This article shows VIM3 NPU usage examples through **KSNN** - Python API.
  
 <WRAP help > <WRAP help >
-**KSSN** is [[https://github.com/khadas/ksnn#readme|Khadas Software Neural Network]]+**KSNN** is [[https://github.com/khadas/ksnn#readme|Khadas Software Neural Network]]
 </WRAP> </WRAP>
  
 ===== Install KSNN ===== ===== Install KSNN =====
  
-Get code: [[gh>khadas/ksnn]]+Get the library and example code: [[gh>khadas/ksnn]]
  
 ```shell ```shell
Line 18: Line 18:
 ``` ```
  
-Installation dependencies:+Install the dependencies:
  
 ```shell ```shell
Line 72: Line 72:
 --inputs input \ --inputs input \
 --outputs InceptionV3/Predictions/Reshape_1 \ --outputs InceptionV3/Predictions/Reshape_1 \
---mean-values '128,128,128,128' \+--mean-values '128 128 128 0.0078125' \
 --quantized-dtype asymmetric_affine \ --quantized-dtype asymmetric_affine \
 --kboard VIM3 --print-level 1 --kboard VIM3 --print-level 1
Line 83: Line 83:
 --inputs FeatureExtractor/MobilenetV1/MobilenetV1/Conv2d_0/BatchNorm/batchnorm/mul_1 \ --inputs FeatureExtractor/MobilenetV1/MobilenetV1/Conv2d_0/BatchNorm/batchnorm/mul_1 \
 --outputs "'concat concat_1'" \ --outputs "'concat concat_1'" \
---mean-values '127.5,127.5,127.5,127.5' \+--mean-values '127.5 127.5 127.5 0.0078431' \
 --quantized-dtype asymmetric_affine \ --quantized-dtype asymmetric_affine \
 --kboard VIM3 --print-level 1 --kboard VIM3 --print-level 1
Line 91: Line 91:
 ``` ```
  
-Run Inception V3:+Run ''inceptionv3.py'':
  
 ```shell ```shell
Last modified: 2024/05/27 22:15 by louis