qqc1989 commited on
Commit
ae6cba4
·
verified ·
1 Parent(s): 23a14aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +92 -5
README.md CHANGED
@@ -1,9 +1,96 @@
1
  ---
2
- license: bsd-3-clause
 
 
 
 
 
 
 
 
3
  ---
4
 
5
- ## Github
6
- https://github.com/AXERA-TECH/ax-samples
7
 
8
- ## Convert Guide
9
- https://zhuanlan.zhihu.com/p/683050593
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ base_model:
6
+ - Ultralytics/YOLOv8
7
+ pipeline_tag: object-detection
8
+ tags:
9
+ - Ultralytics
10
+ - YOLOv8
11
  ---
12
 
13
+ # YOLOv8
 
14
 
15
+ This version of YOLOv8 has been converted to run on the Axera NPU using **w8a16** quantization.
16
+
17
+ This model has been optimized with the following LoRA:
18
+
19
+ Compatible with Pulsar2 version: 3.4
20
+
21
+ ## Convert tools links:
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
+
29
+
30
+ ## Support Platform
31
+
32
+ - AX650
33
+ - [M4N-Dock(爱芯派Pro)](https://wiki.sipeed.com/hardware/zh/maixIV/m4ndock/m4ndock.html)
34
+ - [M.2 Accelerator card](https://axcl-docs.readthedocs.io/zh-cn/latest/doc_guide_hardware.html)
35
+ - AX630C
36
+ - [爱芯派2](https://axera-pi-2-docs-cn.readthedocs.io/zh-cn/latest/index.html)
37
+ - [Module-LLM](https://docs.m5stack.com/zh_CN/module/Module-LLM)
38
+ - [LLM630 Compute Kit](https://docs.m5stack.com/zh_CN/core/LLM630%20Compute%20Kit)
39
+
40
+ |Chips|yolov8s|
41
+ |--|--|
42
+ |AX650| 3.6 ms |
43
+ |AX630C| TBD ms |
44
+
45
+ ## How to use
46
+
47
+ Download all files from this repository to the device
48
+
49
+ ```
50
+
51
+ root@ax650:~/YOLO11-Pose# tree
52
+ .
53
+ |-- ax650
54
+ | `-- yolov8s.axmodel
55
+ |-- ax_yolov8
56
+ |-- football.jpg
57
+ `-- yolov8_out.jpg
58
+ ```
59
+
60
+ ### Inference
61
+
62
+ Input image:
63
+ ![](./football.jpg)
64
+
65
+ #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
66
+
67
+ ```
68
+ root@ax650:~/samples/AXERA-TECH/YOLOv8# ./ax_yolov8 -m ax650/yolov8s.axmodel -i football.jpg
69
+ --------------------------------------
70
+ model file : ax650/yolov8s.axmodel
71
+ image file : football.jpg
72
+ img_h, img_w : 640 640
73
+ --------------------------------------
74
+ Engine creating handle is done.
75
+ Engine creating context is done.
76
+ Engine get io info is done.
77
+ Engine alloc io is done.
78
+ Engine push input is done.
79
+ --------------------------------------
80
+ post process cost time:3.96 ms
81
+ --------------------------------------
82
+ Repeat 1 times, avg time 3.64 ms, max_time 3.64 ms, min_time 3.64 ms
83
+ --------------------------------------
84
+ detection num: 7
85
+ 0: 93%, [ 757, 215, 1131, 1156], person
86
+ 0: 93%, [ 0, 354, 311, 1104], person
87
+ 0: 93%, [1351, 342, 1627, 1032], person
88
+ 0: 91%, [ 488, 478, 661, 998], person
89
+ 32: 87%, [ 773, 889, 829, 939], sports ball
90
+ 32: 77%, [1231, 876, 1280, 922], sports ball
91
+ 0: 60%, [1840, 690, 1906, 809], person
92
+ --------------------------------------
93
+ ```
94
+
95
+ Output image:
96
+ ![](./yolov8_out.jpg)