cd $(dirname $0) || exit
dirname $0
model_type="onnx"
onnx_model="/data/x3/x3_tc_1.1.17e/x3-toolchain-1.1.17e.tar/horizon_x3_tc_1.1.17e/samples/04_detection/04_yolov5_shw/yolov5s.onnx"
output="./yolov5_checker.log"
hb_mapper checker --model-type ${model_type} \
--model ${onnx_model} \
--output ${output}
2020-12-10 12:41:49,958 INFO Start hb_mapper....
2020-12-10 12:41:49,958 INFO hb_mapper version 1.1.24
2020-12-10 12:41:50,314 INFO Model type: onnx
2020-12-10 12:41:50,315 INFO output file: ./yolov5_checker.log
2020-12-10 12:41:50,315 INFO input names []
2020-12-10 12:41:50,315 INFO input shapes {}
2020-12-10 12:41:50,315 INFO Begin model checking....
2020-12-10 12:41:50,315 INFO [Thu Dec 10 12:41:50 2020] Start to Horizon NN Model Convert.
2020-12-10 12:41:50,315 INFO The input parameter is not specified, convert with default parameters.
2020-12-10 12:41:50,315 INFO The hbdk parameter is not specified, and the submodel will be compiled with the default parameter.
2020-12-10 12:41:50,315 INFO HorizonNN version: 0.7.6
2020-12-10 12:41:50,316 INFO HBDK version: 3.12.9
2020-12-10 12:41:50,316 INFO [Thu Dec 10 12:41:50 2020] Start to parse the onnx model.
2020-12-10 12:41:50,501 INFO ONNX model info:
ONNX IR version: 6
Opset version: 10
Input name: images, [1, 3, 640, 640]
2020-12-10 12:41:50,752 INFO [Thu Dec 10 12:41:50 2020] End to parse the onnx model.
2020-12-10 12:41:50,755 INFO Model input names: ['images']
2020-12-10 12:41:53,801 INFO Saving the original float model: ./.hb_check/original_float_model.onnx.
2020-12-10 12:41:53,803 INFO [Thu Dec 10 12:41:53 2020] Start to optimize the model.
2020-12-10 12:41:54,420 INFO [Thu Dec 10 12:41:54 2020] End to optimize the model.
2020-12-10 12:41:57,130 INFO Saving the optimized model: ./.hb_check/optimized_float_model.onnx.
2020-12-10 12:41:57,131 INFO [Thu Dec 10 12:41:57 2020] Start to calibrate the model.
2020-12-10 12:41:57,436 INFO [Thu Dec 10 12:41:57 2020] End to calibrate the model.
2020-12-10 12:41:57,441 INFO [Thu Dec 10 12:41:57 2020] Start to quantize the model.
2020-12-10 12:41:59,162 INFO [Thu Dec 10 12:41:59 2020] End to quantize the model.
2020-12-10 12:42:05,826 INFO Saving the quantized model: ./.hb_check/quantized_model.onnx.
2020-12-10 12:42:05,827 INFO [Thu Dec 10 12:42:05 2020] Start to compile the model with march bernoulli2.
2020-12-10 12:42:06,818 INFO Compile submodel: torch-jit-export_subgraph_0
01_check.sh: line 19: 27513 Segmentation fault (core dumped) hb_mapper checker --model-type ${model_type} --model ${onnx_model} --output ${output}
这就成功了?为何没看到算子检测列表?


