qqc1989 commited on
Commit
f400122
·
verified ·
1 Parent(s): 5882624

Upload 7 files

Browse files
ax620e/yolo11s.axmodel.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2390c92feaa5bbb434f26a501423d5acae6521fdbc7635445364ed9105a43edb
3
+ size 9910997
ax650/yolo11s.axmodel.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bad83368e9d68ae9740e9bb72c34e6b8173635faca7eb366e5484f578fa10fa2
3
+ size 10491152
cut-onnx.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import onnx
2
+
3
+ input_path = "yolo11s.onnx"
4
+ output_path = "yolo11s-cut.onnx"
5
+ input_names = ["images"]
6
+ output_names = ["/model.23/Concat_output_0", "/model.23/Concat_1_output_0", "/model.23/Concat_2_output_0"]
7
+
8
+ onnx.utils.extract_model(input_path, output_path, input_names, output_names)
ssd_horse.jpg ADDED
yolo11-test.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from ultralytics import YOLO
2
+
3
+ # Load a model
4
+ model = YOLO("yolo11s.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("yolo11s-result.jpg")
12
+
13
+ # Export to onnx with simplify
14
+ model.export(format='onnx', simplify=True)
15
+
16
+
yolo11_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": 32,
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.23/Concat_output_0",
30
+ "dst_perm": [0, 2, 3, 1]
31
+ }, {
32
+ "tensor_name": "/model.23/Concat_1_output_0",
33
+ "dst_perm": [0, 2, 3, 1]
34
+ }, {
35
+ "tensor_name": "/model.23/Concat_2_output_0",
36
+ "dst_perm": [0, 2, 3, 1]
37
+ }
38
+ ],
39
+ "compiler": {
40
+ "check": 2
41
+ }
42
+ }
yolo11s-cut.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd483e87031d8c7bd04aaf18e6a50cd71006c9b086d09df4eb3614cd6cab3bf0
3
+ size 37856530