cqu20160901 / yolov7_caffe_onnx_tensorRT_rknn_horizon

yolov7 部署版本,后处理用python语言和C++语言形式进行改写,便于移植不同平台(caffe、onnx、tensorRT、RKNN、Horzion)。
31 stars 6 forks source link

在yolov7_horizon执行 03_build.sh时报错,生成的test.rgb不符合要求 #2

Open chen128 opened 1 year ago

chen128 commented 1 year ago

ERROR load cal data for input 'data' error 2023-03-01 18:20:43,877 ERROR Could not find a backend to open /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/09_yolov7_horizon/mapper/cal_data/test.rgb`` with iomoderi`.

chen128 commented 1 year ago

[root@461bfc71372c mapper]# ./02_preprocess.sh cd $(dirname $0) || exit

python3 data_preprocess.py \ --src_dir ./src_data \ --dst_dir ./cal_data \ --pic_ext .rgb \ --read_mode opencv regular preprocess write:./cal_data/test.rgb [root@461bfc71372c mapper]# ./03_build.sh cd $(dirname $0) config_file="./yolov7_config.yaml" model_type="onnx"

build model

hb_mapper makertbin --config ${config_file} \ --model-type ${model_type} /usr/local/lib/python3.6/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.hazmat.backends import default_backend 2023-03-01 18:20:43,527 INFO log will be stored in /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/09_yolov7_horizon/mapper/hb_mapper_makertbin.log 2023-03-01 18:20:43,527 INFO Start hb_mapper.... 2023-03-01 18:20:43,528 INFO hbdk version 3.41.4 2023-03-01 18:20:43,528 INFO horizon_nn version 0.15.3 2023-03-01 18:20:43,528 INFO hb_mapper version 1.13.3 2023-03-01 18:20:43,529 INFO Start Model Convert.... 2023-03-01 18:20:43,544 INFO Using onnx model file: /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/09_yolov7_horizon/mapper/model/yolov7.onnx 2023-03-01 18:20:43,576 INFO Model has 1 inputs according to model file 2023-03-01 18:20:43,578 INFO Model name not given in yaml_file, using model name from model file: ['data'] 2023-03-01 18:20:43,579 INFO Model input shape not given in yaml_file, using shape from model file: [[1, 3, 640, 640]] 2023-03-01 18:20:43,581 INFO custom_op does not exist, skipped 2023-03-01 18:20:43,582 WARNING Input node data's input_source not set, it will be set to ddr by default 2023-03-01 18:20:43,583 WARNING User input 'log_level' is deprecated,Console log level is set as info, and logfile log level is set as debug. 2023-03-01 18:20:43,583 WARNING User input 'preprocess_on' will be deprecated. If you want to simplify the calibration process, please use 'skip' in 'calibration_type' 2023-03-01 18:20:43,587 WARNING Please note that the calibration file data type is set to uint8, determined by the name of the calibration dir name suffix. 2023-03-01 18:20:43,587 WARNING if you need to set it explicitly, please configure the value of cal_data_type in the calibration_parameters group in yaml. 2023-03-01 18:20:43,589 INFO 2023-03-01 18:20:43,589 INFO First calibration picture name: test.jpg 2023-03-01 18:20:43,590 INFO First calibration picture md5: 723ca878c94f27a56a9c878c6cea718c /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/09_yolov7_horizon/mapper/cal_data/test.jpg 2023-03-01 18:20:43,597 INFO 2023-03-01 18:20:43,708 WARNING File /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/09_yolov7_horizon/mapper/cal_data/test.rgb may not be a regular image file. Please double check the file input. 2023-03-01 18:20:43,875 ERROR load cal data for input 'data' error 2023-03-01 18:20:43,877 ERROR Could not find a backend to open /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/09_yolov7_horizon/mapper/cal_data/test.rgb`` with iomoderi`. [root@461bfc71372c mapper]# ./03_build.sh

cqu20160901 commented 1 year ago

把 09_yolov7_horizon/mapper/cal_data/test.rgb 下的 “test.rgb” 直接换成一张 test.jpg的图像。