Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2: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:edge2:npu:demos:vgg16 [2023/08/27 23:50]
louis
products:sbc:edge2:npu:demos:vgg16 [2025/04/09 23:30] (current)
louis
Line 1: Line 1:
-====== Demo4 - VGG16 ======+~~tag>NPU VGG16 Edge2 TensorFlow Keras ~~
  
-===== Get Source Code =====+====== VGG16 TensorFlow Keras Edge2 Demo - 4 ====== 
 + 
 +{{indexmenu_n>4}} 
 + 
 +===== Introduction ===== 
 + 
 +VGG16 is a classification model. It can assign a single label to an entire image. 
 + 
 +Image and inference results on Edge2. 
 + 
 +{{:products:sbc:edge2:npu:demos:deer.jpeg?400|}} 
 + 
 + {{:products:sbc:edge2:npu:demos:vgg16-result.png?200|}} 
 + 
 +===== Train Model =====
  
 ```shell ```shell
Line 59: Line 73:
 Enter ''rknn-toolkit2/examples/tensorflow/ssd_mobilenet_v1'' and modify ''test.py'' as follows. Enter ''rknn-toolkit2/examples/tensorflow/ssd_mobilenet_v1'' and modify ''test.py'' as follows.
  
-```python modify test.py+```python test.py
 # Create RKNN object # Create RKNN object
 rknn = RKNN(verbose=True) rknn = RKNN(verbose=True)
Line 106: Line 120:
 ==== Get source code ==== ==== Get source code ====
  
-Clone the source code form our [[gh>khadas/edge2-npu]].+Clone the source code from our [[gh>khadas/edge2-npu]].
  
 ```shell ```shell
Line 135: Line 149:
  
 <WRAP tip > <WRAP tip >
-If your vgg16 model classes is not the same as cifar10, please change ''data/vgg16_class.txt'' and the ''OBJ_CLASS_NUM'' in ''include/postprocess.h''.+If your **VGG16** model classes is not the same as **cifar10**, please change ''data/vgg16_class.txt'' and the ''OBJ_CLASS_NUM'' in ''include/postprocess.h''.
 </WRAP> </WRAP>
  
Last modified: 2023/08/27 23:50 by louis