Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:npu:demos:vgg16

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
products:sbc:vim4:npu:demos:vgg16 [2024/10/28 21:11]
louis
products:sbc:vim4:npu:demos:vgg16 [2025/01/08 22:25] (current)
louis
Line 1: Line 1:
 ~~tag>NPU VGG16 VIM4 Tensorflow Keras ~~ ~~tag>NPU VGG16 VIM4 Tensorflow Keras ~~
 +
 +**Doc for version ddk-3.4.7.7**
  
 ====== VGG16 TensorFlow Keras VIM4 Demo 4 ====== ====== VGG16 TensorFlow Keras VIM4 Demo 4 ======
Line 28: Line 30:
 ``` ```
  
-===== Get Convert Tool =====+==== Get convert tool ==== 
 + 
 +Download Tool from [[gh>khadas/vim4_npu_sdk]].
  
 ```shell ```shell
 $ git lfs install $ git lfs install
-$ git lfs clone https://gitlab.com/khadas/vim4_npu_sdk.git+$ git lfs clone https://github.com/khadas/vim4_npu_sdk
 $ cd vim4_npu_sdk $ cd vim4_npu_sdk
 $ ls $ ls
Line 42: Line 46:
   * ''adla-toolkit-binary/demo'' - Conversion examples   * ''adla-toolkit-binary/demo'' - Conversion examples
  
-==== Get convert tool ==== +<WRAP important> 
- +If your kernel is older than 241129, please use branch npu-ddk-1.7.5.5
-Download Tool from [[gl>khadas/vim4_npu_sdk]]+</WRAP>
- +
-```shell +
-$ git clone https://gitlab.com/khadas/vim4_npu_sdk +
-```+
  
 ==== Convert ==== ==== Convert ====
Line 82: Line 82:
         --quantize-dtype int8 --outdir tensorflow_output \         --quantize-dtype int8 --outdir tensorflow_output \
         --channel-mean-value "0,0,0,255" \         --channel-mean-value "0,0,0,255" \
 +        --inference-input-type "float32" \
 +        --inference-output-type "float32" \
         --source-file vgg16_dataset.txt \         --source-file vgg16_dataset.txt \
         --iterations 500 \         --iterations 500 \
Line 103: Line 105:
 $ git clone https://github.com/khadas/vim4_npu_applications $ git clone https://github.com/khadas/vim4_npu_applications
 ``` ```
 +
 +<WRAP important>
 +If your kernel is older than 241129, please use version before tag ddk-3.4.7.7.
 +</WRAP>
  
 ==== Install dependencies ==== ==== Install dependencies ====
Line 126: Line 132:
  
 # Run # Run
-sudo ./vgg16 -m ../data/vgg16_int8.adla -p ../data/airplane.jpeg+$ ./vgg16 -m ../data/vgg16_int8.adla -p ../data/airplane.jpeg
 ``` ```
 +
 +{{:products:sbc:vim4:npu:demos:airplane.webp?400|}}
 +
 +{{:products:sbc:vim4:npu:demos:vgg16-demo-output.webp?400|}}
  
 <WRAP tip > <WRAP tip >
Last modified: 2024/10/28 21:11 by louis