qqc1989 commited on
Commit
300f7e8
Β·
verified Β·
1 Parent(s): 2afa3cc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +81 -10
README.md CHANGED
@@ -22,7 +22,9 @@ Compatible with Pulsar2 version: 3.4
22
 
23
  For those who are interested in model conversion, you can try to export axmodel through
24
 
25
- - [The repo of AXera Platform](https://github.com/AXERA-TECH/ax-samples), which you can get the detial of guide
 
 
26
 
27
  - [Pulsar2 Link, How to Convert ONNX to axmodel](https://pulsar2-docs.readthedocs.io/en/latest/pulsar2/introduction.html)
28
 
@@ -47,14 +49,31 @@ For those who are interested in model conversion, you can try to export axmodel
47
  Download all files from this repository to the device
48
 
49
  ```
50
-
51
- root@ax650:~/YOLO11-Pose# tree
52
  .
53
- |-- ax650
54
- | `-- yolo11x.axmodel
55
- |-- ax_yolo11
56
- |-- football.jpg
57
- `-- yolo11_out.jpg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  ```
59
 
60
  ### Inference
@@ -65,7 +84,7 @@ Input image:
65
  #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
66
 
67
  ```
68
- root@ax650:~/samples/AXERA-TECH/YOLO11# ./ax_yolo11 -m ax650/yolo11x.axmodel -i football.jpg
69
  --------------------------------------
70
  model file : ax650/yolo11x.axmodel
71
  image file : football.jpg
@@ -95,4 +114,56 @@ detection num: 9
95
  ```
96
 
97
  Output image:
98
- ![](./yolo11_out.jpg)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  For those who are interested in model conversion, you can try to export axmodel through
24
 
25
+ - [The repo of ax-samples](https://github.com/AXERA-TECH/ax-samples), which you can get the how to build the `ax_yolo11`
26
+
27
+ - [The repo of axcl-samples](https://github.com/AXERA-TECH/axcl-samples), which you can get the how to build the `axcl_yolo11`
28
 
29
  - [Pulsar2 Link, How to Convert ONNX to axmodel](https://pulsar2-docs.readthedocs.io/en/latest/pulsar2/introduction.html)
30
 
 
49
  Download all files from this repository to the device
50
 
51
  ```
52
+ (axcl) axera@raspberrypi:~/samples/AXERA-TECH/YOLO11 $ tree -L 2
 
53
  .
54
+ β”œβ”€β”€ ax620e
55
+ β”‚Β Β  └── yolo11s.axmodel.onnx
56
+ β”œβ”€β”€ ax650
57
+ β”‚Β Β  β”œβ”€β”€ yolo11s.axmodel
58
+ β”‚Β Β  └── yolo11x.axmodel
59
+ β”œβ”€β”€ ax_aarch64
60
+ β”‚Β Β  └── ax_yolo11
61
+ β”œβ”€β”€ axcl_aarch64
62
+ β”‚Β Β  └── axcl_yolo11
63
+ β”œβ”€β”€ axcl_x86_64
64
+ β”‚Β Β  └── axcl_yolo11
65
+ β”œβ”€β”€ config.json
66
+ β”œβ”€β”€ cut-onnx.py
67
+ β”œβ”€β”€ football.jpg
68
+ β”œβ”€β”€ README.md
69
+ β”œβ”€β”€ ssd_horse.jpg
70
+ β”œβ”€β”€ yolo11_config.json
71
+ β”œβ”€β”€ yolo11_out.jpg
72
+ β”œβ”€β”€ yolo11s-cut.onnx
73
+ └── yolo11-test.py
74
+
75
+ 6 directories, 15 files
76
+
77
  ```
78
 
79
  ### Inference
 
84
  #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
85
 
86
  ```
87
+ root@ax650:~/samples/AXERA-TECH/YOLO11# ./ax_aarch64/ax_yolo11 -m ax650/yolo11x.axmodel -i football.jpg
88
  --------------------------------------
89
  model file : ax650/yolo11x.axmodel
90
  image file : football.jpg
 
114
  ```
115
 
116
  Output image:
117
+ ![](./yolo11_out.jpg)
118
+
119
+
120
+ #### Inference with M.2 Accelerator card
121
+
122
+ ```
123
+ (axcl) axera@raspberrypi:~/samples/AXERA-TECH/YOLO11 $ ./axcl_aarch64/axcl_yolo11 -m ax650/yolo11x.axmodel -i football.jpg
124
+ --------------------------------------
125
+ model file : ax650/yolo11x.axmodel
126
+ image file : football.jpg
127
+ img_h, img_w : 640 640
128
+ --------------------------------------
129
+ axclrtEngineCreateContextt is done.
130
+ axclrtEngineGetIOInfo is done.
131
+
132
+ grpid: 0
133
+
134
+ input size: 1
135
+ name: images
136
+ 1 x 640 x 640 x 3
137
+
138
+
139
+ output size: 3
140
+ name: /model.23/Concat_output_0
141
+ 1 x 80 x 80 x 144
142
+
143
+ name: /model.23/Concat_1_output_0
144
+ 1 x 40 x 40 x 144
145
+
146
+ name: /model.23/Concat_2_output_0
147
+ 1 x 20 x 20 x 144
148
+
149
+ ==================================================
150
+
151
+ Engine push input is done.
152
+ --------------------------------------
153
+ post process cost time:1.38 ms
154
+ --------------------------------------
155
+ Repeat 1 times, avg time 24.73 ms, max_time 24.73 ms, min_time 24.73 ms
156
+ --------------------------------------
157
+ detection num: 9
158
+ 0: 94%, [ 757, 220, 1127, 1154], person
159
+ 0: 94%, [ 0, 357, 314, 1112], person
160
+ 0: 93%, [1353, 339, 1629, 1037], person
161
+ 0: 91%, [ 494, 476, 659, 1001], person
162
+ 32: 86%, [1231, 877, 1281, 922], sports ball
163
+ 32: 73%, [ 774, 887, 828, 938], sports ball
164
+ 32: 66%, [1012, 882, 1051, 927], sports ball
165
+ 0: 54%, [ 0, 543, 83, 1000], person
166
+ 0: 46%, [1837, 696, 1877, 814], person
167
+ --------------------------------------
168
+
169
+ ```