| { | |
| "input": "./det_mobile_sim_static.onnx", | |
| "output_dir": "./det", | |
| "output_name": "det.axmodel", | |
| "model_type": "ONNX", | |
| "target_hardware": "AX620E", | |
| "npu_mode": "NPU2", | |
| "onnx_opt": { | |
| "disable_onnx_optimization": false, | |
| "enable_onnxsim": true, | |
| "model_check": true, | |
| "disable_transformation_check": false | |
| }, | |
| "quant": { | |
| "input_configs": [ | |
| { | |
| "tensor_name": "x", | |
| "calibration_dataset": "./ocr_pic.tar.gz", | |
| "calibration_size": -1, | |
| "calibration_mean": [123.675,116.28,103.53], | |
| "calibration_std": [58.395,57.12,57.375] | |
| } | |
| ], | |
| "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 | |
| } | |
| } | |