File size: 1,173 Bytes
efaa3d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "model_type": "ONNX",
  "npu_mode": "NPU3",
  "input": "onnx/relative_s_448_default_axonnx_t4.onnx",
  "output_dir": "./output_axonnx_t4",
  "output_name": "relative_s_448_default_ax650_t4.axmodel",
  "quant": {
    "input_configs": [
      {
        "tensor_name": "DEFAULT",
        "calibration_dataset": "/data/datasets/coco2017val_500_calibration_dataset.tar",
        "calibration_size": 8,
        "calibration_mean": [
          123.675,
          116.28,
          103.53
        ],
        "calibration_std": [
          58.395,
          57.12,
          57.375
        ]
      }
    ],
    "calibration_method": "Percentile",
    "precision_analysis": true,
    "precision_analysis_method": "EndToEnd",
    "conv_bias_data_type": "FP32",
    "layer_configs": [
      {
        "start_tensor_names": [
          "DEFAULT"
        ],
        "end_tensor_names": [
          "DEFAULT"
        ],
        "data_type": "U16"
      }
    ]
  },
  "input_processors": [
    {
      "tensor_name": "DEFAULT",
      "tensor_format": "RGB",
      "src_format": "RGB",
      "src_dtype": "U8",
      "src_layout": "NCHW"
    }
  ],
  "compiler": {
    "check": 0
  }
}