wzf19947 commited on
Commit
344d4a5
·
1 Parent(s): 9446796

upload c++ demo and 620e/637 axmodel

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.axmodel filter=lfs diff=lfs merge=lfs -text
37
+ CPP/* filter=lfs diff=lfs merge=lfs -text
38
+ *.png filter=lfs diff=lfs merge=lfs -text
CPP/ax_yolov5_qrcode_batch ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:390ef023b69c4e77452f980731af6b1158dc2eae67cab53776673e391fb92705
3
+ size 6218072
CPP/ax_yolov8_qrcode_batch ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7065df4e296f3d8519e0eff7f7e2e2a3a038c78c3d3cf42defb367d5fb3b60f9
3
+ size 6209880
README.md CHANGED
@@ -3,7 +3,7 @@ license: mit
3
  pipeline_tag: object-detection
4
  ---
5
 
6
- # CodeFormer
7
 
8
  This version of QRCode detetion model has been converted to run on the Axera NPU using **w8a16** quantization.
9
 
@@ -15,26 +15,34 @@ Compatible with Pulsar2 version: 4.2
15
 
16
  For those who are interested in model conversion, you can try to export axmodel through
17
 
18
- - [The repo of AXera Platform](https://github.com/wzf19947/QRCode_det), which you can get the detail of guide
19
 
20
  - [Pulsar2 Link, How to Convert ONNX to axmodel](https://pulsar2-docs.readthedocs.io/en/latest/pulsar2/introduction.html)
21
 
 
22
 
23
  ## Support Platform
24
 
25
  - AX650
26
  - [M4N-Dock(爱芯派Pro)](https://wiki.sipeed.com/hardware/zh/maixIV/m4ndock/m4ndock.html)
27
  - [M.2 Accelerator card](https://axcl-docs.readthedocs.io/zh-cn/latest/doc_guide_hardware.html)
28
-
 
 
 
 
29
  |Chips|model|cost|
30
  |--|--|--|
31
- |AX650|yolov5n|0.73 ms|
32
- |AX650|yolov8n|1.31 ms|
33
- |AX650|yolov9t|1.89 ms|
34
  |AX650|yolov10n|1.44 ms|
35
- |AX650|yolo11n|1.39 ms|
36
- |AX650|yolo12n|2.49 ms|
37
- |AX650|DEIMv2_femto(u16)|1.79 ms|
 
 
 
38
 
39
  ## How to use
40
 
@@ -44,20 +52,41 @@ Download all files from this repository to the device
44
 
45
  root@ax650:~/QRCode_det# tree
46
  .
 
 
 
 
 
 
 
 
 
 
47
  |-- model
48
- | `-- deimv2_hgnetv2_femto_coco_npu3.axmodel
49
- | `-- yolov5n_npu3.axmodel
50
- | `-- yolov8n_npu3.axmodel
 
 
 
 
 
 
 
 
 
 
 
 
51
  |-- python
52
- |`-- QRCode_axmodel_infer_DEIMv2.py
53
- |`-- QRCode_axmodel_infer_v5.py
54
- |`-- QRCode_axmodel_infer_v8.py
55
- |`-- QRCode_onnx_infer_DEIMv2.py
56
- |`-- QRCode_onnx_infer_v5.py
57
- |`-- QRCode_onnx_infer_v8.py
58
- |`-- requirements.txt
59
-
60
-
61
 
62
  ```
63
 
@@ -76,7 +105,8 @@ Input Data:
76
 
77
  #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
78
 
79
- run with python3 QRCode_onnx_infer_xxx.py or python3 QRCode_axmodel_infer_xxx.py
 
80
  ```
81
  root@ax650:~/QRCode# python3 QRCode_axmodel_infer_DEIMv2.py
82
  [INFO] Available providers: ['AxEngineExecutionProvider']
@@ -98,4 +128,14 @@ root@ax650:~/QRCode# python3 QRCode_axmodel_infer_DEIMv2.py
98
  ```
99
 
100
  Output:
101
- ![alt text](result.png)
 
 
 
 
 
 
 
 
 
 
 
3
  pipeline_tag: object-detection
4
  ---
5
 
6
+ # QRCode_det
7
 
8
  This version of QRCode detetion model has been converted to run on the Axera NPU using **w8a16** quantization.
9
 
 
15
 
16
  For those who are interested in model conversion, you can try to export axmodel through
17
 
18
+ - [The original repo](https://github.com/wzf19947/QRCode_det), which you can get the detail of guide
19
 
20
  - [Pulsar2 Link, How to Convert ONNX to axmodel](https://pulsar2-docs.readthedocs.io/en/latest/pulsar2/introduction.html)
21
 
22
+ - [The repo of AXera Platform](https://github.com/AXERA-TECH/ax-samples),which you can compile the c++ demo
23
 
24
  ## Support Platform
25
 
26
  - AX650
27
  - [M4N-Dock(爱芯派Pro)](https://wiki.sipeed.com/hardware/zh/maixIV/m4ndock/m4ndock.html)
28
  - [M.2 Accelerator card](https://axcl-docs.readthedocs.io/zh-cn/latest/doc_guide_hardware.html)
29
+ - AX630C
30
+ - [爱芯派2](https://axera-pi-2-docs-cn.readthedocs.io/zh-cn/latest/index.html)
31
+ - [Module-LLM](https://docs.m5stack.com/zh_CN/module/Module-LLM)
32
+ - [LLM630 Compute Kit](https://docs.m5stack.com/zh_CN/core/LLM630%20Compute%20Kit)
33
+
34
  |Chips|model|cost|
35
  |--|--|--|
36
+ ||yolov5n|0.73 ms|
37
+ ||yolov8n|1.31 ms|
38
+ ||yolov9t|1.89 ms|
39
  |AX650|yolov10n|1.44 ms|
40
+ ||yolo11n|1.39 ms|
41
+ ||yolo12n|2.49 ms|
42
+ ||DEIMv2_femto(u16)|1.79 ms|
43
+
44
+ |AX630C|yolov5n|2.57 ms|
45
+ |AX630C|yolov8n|5.89 ms|
46
 
47
  ## How to use
48
 
 
52
 
53
  root@ax650:~/QRCode_det# tree
54
  .
55
+ |-- CPP
56
+ | |-- ax_yolov5_qrcode_batch
57
+ | `-- ax_yolov8_qrcode_batch
58
+ |-- README.md
59
+ |-- images
60
+ | |-- qrcode_01.jpg
61
+ | |-- qrcode_02.jpg
62
+ | |-- qrcode_03.jpg
63
+ | ....
64
+ | `-- qrcode_55.jpg
65
  |-- model
66
+ | |-- AX620E
67
+ | | |-- yolov5n_npu1.axmodel
68
+ | | |-- yolov5n_npu2.axmodel
69
+ | | |-- yolov8n_npu1.axmodel
70
+ | | `-- yolov8n_npu2.axmodel
71
+ | |-- AX637
72
+ | | |-- yolov5n_npu1.axmodel
73
+ | | `-- yolov8n_npu1.axmodel
74
+ | |-- AX650
75
+ | | |-- deimv2_hgnetv2_femto_coco_npu3.axmodel
76
+ | | |-- yolov5n_npu3.axmodel
77
+ | | `-- yolov8n_npu3.axmodel
78
+ | `-- CPP
79
+ | |-- yolov5n_cpp_npu3.axmodel
80
+ | `-- yolov8n_cpp_npu3.axmodel
81
  |-- python
82
+ | |-- QRCode_axmodel_infer_DEIMv2.py
83
+ | |-- QRCode_axmodel_infer_v5.py
84
+ | |-- QRCode_axmodel_infer_v8.py
85
+ | |-- QRCode_onnx_infer_DEIMv2.py
86
+ | |-- QRCode_onnx_infer_v5.py
87
+ | |-- QRCode_onnx_infer_v8.py
88
+ | `-- requirements.txt
89
+ `-- result.png
 
90
 
91
  ```
92
 
 
105
 
106
  #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
107
 
108
+ ##### Python
109
+ run with python3 QRCode_axmodel_infer_xxx.py
110
  ```
111
  root@ax650:~/QRCode# python3 QRCode_axmodel_infer_DEIMv2.py
112
  [INFO] Available providers: ['AxEngineExecutionProvider']
 
128
  ```
129
 
130
  Output:
131
+ ![alt text](py_result.png)
132
+
133
+ ##### C++
134
+ ```
135
+ ./ax_yolov8_qrcode_batch -m yolov8n_cpp_npu3.axmodel -i images/ -o res/
136
+ or
137
+ ./ax_yolov5_qrcode_batch -m yolov5n_cpp_npu3.axmodel -i images/ -o res/
138
+ ```
139
+
140
+ Output:
141
+ ![alt text](cpp_result.png)
cpp_result.png ADDED

Git LFS Details

  • SHA256: 15b16914dac3cab9bec27f6260f3d1a63df5de309cfb03581e7d363eda69ef24
  • Pointer size: 130 Bytes
  • Size of remote file: 49.9 kB
model/AX620E/yolov5n_npu1.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb93d21015ca639308bdd42cc3275c5776cfdd5d67c822b08d1d10843db767a9
3
+ size 2089800
model/AX620E/yolov5n_npu2.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a73396b9bc57a097554cf5d9c54f745b2ea4c0f24a3644f0317d13cd415bb4e2
3
+ size 1854620
model/AX620E/yolov8n_npu1.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0d52b2b3692be7e00e9ce710ed3155e47499a0f580749f66ffe9cf32230bfb7
3
+ size 3548343
model/AX620E/yolov8n_npu2.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e18042a394d440cc6fc73a7b35871a189081961f3a5cb72301e76edc9799d3a3
3
+ size 3208843
model/AX637/yolov5n_npu1.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13f44b48e782769a57aba01e07d6724f60a507dbdb0ecf35e44f3838ac58798e
3
+ size 1865062
model/AX637/yolov8n_npu1.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80a03632e1c762094f7bbc6115674270b5c23db8fcc8dcdaf65443988b6e0292
3
+ size 3178331
model/AX650/deimv2_hgnetv2_femto_coco_npu3.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87f89ba2fee66b2f2b959a8f837fe61bad1a9c6ef49636e3d9d43e4541d51155
3
+ size 2165133
model/AX650/yolov5n_npu3.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34ea4a3e74bd9dde388086cb60cd51f9d53c7734bf52f2e21de9a6d71de0b194
3
+ size 2003219
model/AX650/yolov8n_npu3.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d05be5bad116511e552849e16793b8b3ea19238a8fa1dc00935a18fb58207e81
3
+ size 3488708
model/CPP/yolov5n_cpp_npu3.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a59402253a3e4f14c6ff93d939f6bdb889b86858dcd729c6f2d82efe96f6da1
3
+ size 2001946
model/CPP/yolov8n_cpp_npu3.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44eef3ec1e8d5d7cb8925dcfe4b25dd1826445baa18b0cf4db4deb5e87f7412e
3
+ size 3487467
model/deimv2_hgnetv2_femto_coco_npu3.axmodel CHANGED
@@ -1,3 +1,3 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:87f89ba2fee66b2f2b959a8f837fe61bad1a9c6ef49636e3d9d43e4541d51155
3
- size 2165133
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87f89ba2fee66b2f2b959a8f837fe61bad1a9c6ef49636e3d9d43e4541d51155
3
+ size 2165133
model/yolov5n_npu3.axmodel CHANGED
@@ -1,3 +1,3 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:34ea4a3e74bd9dde388086cb60cd51f9d53c7734bf52f2e21de9a6d71de0b194
3
- size 2003219
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34ea4a3e74bd9dde388086cb60cd51f9d53c7734bf52f2e21de9a6d71de0b194
3
+ size 2003219
model/yolov8n_npu3.axmodel CHANGED
@@ -1,3 +1,3 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d05be5bad116511e552849e16793b8b3ea19238a8fa1dc00935a18fb58207e81
3
- size 3488708
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d05be5bad116511e552849e16793b8b3ea19238a8fa1dc00935a18fb58207e81
3
+ size 3488708
py_result.png ADDED

Git LFS Details

  • SHA256: c2ceaa1ed77ed72a52e9f87e3bf9de61abba1abe867247e431d84f3370e91fde
  • Pointer size: 130 Bytes
  • Size of remote file: 21.2 kB
result.png CHANGED

Git LFS Details

  • SHA256: c2ceaa1ed77ed72a52e9f87e3bf9de61abba1abe867247e431d84f3370e91fde
  • Pointer size: 130 Bytes
  • Size of remote file: 21.2 kB