Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:npu:npu-applications

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:npu-applications [2023/08/30 05:19]
louis
products:sbc:vim4:npu:npu-applications [2025/03/17 01:45] (current)
nick [Install dependences]
Line 1: Line 1:
 +~~tags>VIM4 NPU~~
 +
 +**Doc for version ddk-3.4.7.7**
 +
 ====== NPU Applications ====== ====== NPU Applications ======
 +
 +{{indexmenu_n>1}}
  
 <WRAP important > <WRAP important >
Line 23: Line 29:
 $ cd vim4_npu_applications $ cd vim4_npu_applications
 $ ls $ ls
-mobilenet_v2  nn_sdk  yolov3  yolov3_cap  yolov7_tiny  yolov7_tiny_cap  yolov8n  yolov8n_cap+densenet_ctc  facenet  face_recognition  face_recognition_cap  retinaface  retinaface_cap  vgg16  yolov3  yolov3_cap  yolov7_tiny  yolov7_tiny_cap  yolov8n  yolov8n_cap
 ``` ```
-  * ''mobilenet_v2'', ''yolov3'', ''yolov3_cap'', ''yolov7_tiny'', ''yolov8n'' - Different demo for VIM4 NPU+  * ''densenet_ctc'', ''facenet'', ''retinaface'', ''yolov3'', ''yolov7_tiny'', ''yolov8n'' - Different demo for VIM4 NPU.
-  * ''nn_sdk'' - Dependencies required for compilation.+
  
-Install dependences..+<WRAP important> 
 +Please use convert tool version tag ddk-3.4.7.7 or higher. 
 +</WRAP> 
 + 
 +==== Install dependences ====
  
 ```shell ```shell
 $ sudo apt update $ sudo apt update
-$ sudo apt install libopencv-dev python3-opencv cmake+$ sudo apt install -y libopencv-dev python3-opencv cmake
 ``` ```
  
 ==== Compile ==== ==== Compile ====
  
-Take ''mobilenet_v2'' as an example, other demos are the same.+Take ''yolov3'' as an example, other demos are the same.
  
 ```shell ```shell
-$ cd mobilenet_v2+$ cd yolov3
 $ mkdir build && cd build $ mkdir build && cd build
 $ cmake .. $ cmake ..
Line 47: Line 56:
  
 ==== Run ==== ==== Run ====
- 
-=== Mobilenet V2 === 
- 
-```shell 
-$ cd mobilenet_v2/build 
-$ sudo ./mobilenetv2 ../data/mobilenetv2_int8.adla ../data/goldfish_224x224.jpg  
-[sudo] password for khadas:  
-997: 0.273438 
-886: 0.031250 
-108: 0.023438 
-109: 0.019531 
-127: 0.019531 
-``` 
  
 === Yolov3 === === Yolov3 ===
Line 75: Line 71:
 ```shell ```shell
 $ cd yolov3/build $ cd yolov3/build
-sudo ./yolov3 -p ../data/1080p.bmp  -m ../data/det_yolov3_int8.adla+$ ./yolov3 -p ../data/1080p.bmp  -m ../data/det_yolov3_int8.adla
 ``` ```
  
Line 84: Line 80:
 ```shell ```shell
 $ cd yolov3_cap/build $ cd yolov3_cap/build
-sudo ./yolov3_cap -m ../data/det_yolov3_int8.adla -d X -w 1920 -h 1080+$ ./yolov3_cap -m ../data/det_yolov3_int8.adla -d X -w 1920 -h 1080
 ``` ```
 **x**: the number for you camera device. such as ''/dev/video0'', ''x'' is ''0''. **x**: the number for you camera device. such as ''/dev/video0'', ''x'' is ''0''.
Last modified: 2023/08/30 05:19 by louis