qqc1989 commited on
Commit
a725ece
·
verified ·
1 Parent(s): 2b679c1

initial the models of yolov8 using ax650&ax620e

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
+ ax620e/yolov8s.axmodel filter=lfs diff=lfs merge=lfs -text
37
+ ax650/yolov8s.axmodel filter=lfs diff=lfs merge=lfs -text
ax620e/yolov8s.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e75cbabc9fea453c7f3694826cdddd536653ecac643ec78f6b46daf207a5bec3
3
+ size 11504561
ax650/yolov8s.axmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65da17e48e6d057fb18a1acf1e583c1534f9691944014357e35839479e3818a9
3
+ size 11824773
cut-onnx.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import onnx
2
+
3
+ input_path = "yolov8s.onnx"
4
+ output_path = "yolov8s-cut.onnx"
5
+ input_names = ["images"]
6
+ output_names = ["/model.22/Concat_output_0",
7
+ "/model.22/Concat_1_output_0",
8
+ "/model.22/Concat_2_output_0",]
9
+
10
+ onnx.utils.extract_model(input_path, output_path, input_names, output_names)
yolov8-test.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from ultralytics import YOLO
2
+
3
+ # Load a model
4
+ model = YOLO("yolov8s.pt")
5
+ model.info()
6
+
7
+ # Use the model
8
+ results = model("./images/ssd_horse.jpg")
9
+
10
+ # Save the results
11
+ results[0].save("yolov8s-result.jpg")
12
+
13
+ # Export to onnx with simplify
14
+ model.export(format='onnx', simplify=True)
15
+
16
+
yolov8_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "ONNX",
3
+ "npu_mode": "NPU1",
4
+ "quant": {
5
+ "input_configs": [
6
+ {
7
+ "tensor_name": "images",
8
+ "calibration_dataset": "./dataset/coco_1000.tar",
9
+ "calibration_size": 4,
10
+ "calibration_mean": [0, 0, 0],
11
+ "calibration_std": [255.0, 255.0, 255.0]
12
+ }
13
+ ],
14
+ "calibration_method": "MinMax",
15
+ "precision_analysis": true,
16
+ "precision_analysis_method":"EndToEnd"
17
+ },
18
+ "input_processors": [
19
+ {
20
+ "tensor_name": "images",
21
+ "tensor_format": "BGR",
22
+ "src_format": "BGR",
23
+ "src_dtype": "U8",
24
+ "src_layout": "NHWC"
25
+ }
26
+ ],
27
+ "output_processors": [
28
+ {
29
+ "tensor_name": "/model.22/Concat_output_0",
30
+ "dst_perm": [0, 2, 3, 1]
31
+ }, {
32
+ "tensor_name": "/model.22/Concat_1_output_0",
33
+ "dst_perm": [0, 2, 3, 1]
34
+ }, {
35
+ "tensor_name": "/model.22/Concat_2_output_0",
36
+ "dst_perm": [0, 2, 3, 1]
37
+ },
38
+ ],
39
+ "compiler": {
40
+ "check": 0
41
+ }
42
+ }
yolov8s-cut.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e293b99619e22e9508225e4c1ef60d2e021f02bcfc94c9393885e7134a68ba31
3
+ size 44681140
yolov8s.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4309ed01920fc09d6b71412988d074504d4ad6b0d27fb9a50d9f39541cd6e6f
3
+ size 44855069
yolov8s.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f47a78bf100391c2a140b7ac73a1caae18c32779be7d310658112f7ac9aa78a
3
+ size 22588772