File size: 1,242 Bytes
1f179c5
 
 
 
 
 
3d30b13
1f179c5
 
 
3d30b13
1f179c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  "input": "./rec_mobile_sim_static.onnx",
  "output_dir": "./rec",
  "output_name": "rec.axmodel",
  "model_type": "ONNX",
  "target_hardware": "AX620E",
  "npu_mode": "NPU2",

  "onnx_opt": {
    "disable_onnx_optimization": false,
    "enable_onnxsim": false,
    "model_check": true,
    "disable_transformation_check": false
  },

  "quant": {
    "input_configs": [
      {
        "tensor_name": "x",
        "calibration_dataset": "./rec_pic.tar.gz",
        "calibration_format": "Image",
        "calibration_size": -1,
        "calibration_mean": [127.5, 127.5, 127.5],
        "calibration_std": [127.5, 127.5, 127.5]
      }
    ],

    "calibration_method": "MinMax",
    "precision_analysis": true,
    "precision_analysis_method": "EndToEnd",
    "precision_analysis_mode": "Reference", 
    "layer_configs": [
      {
        "start_tensor_names": ["DEFAULT"],
        "end_tensor_names": ["DEFAULT"],
        "data_type": "U16"  
      }
    ]
  },
  "input_processors": [
    {
      "tensor_name": "x",
      "tensor_format": "BGR",
      "tensor_layout": "NCHW",
      "src_format": "BGR",
      "src_dtype": "FP32",
      "src_layout": "NCHW",
      "csc_mode": "NoCSC"
    }
  ],
  "compiler": {
    "check": 2
  }
}