用户您好,请详细描述您所遇到的问题:
- 系统软件版本: (通过 cat /etc/version 获得):x3j3_lnx_db_20220609 debug
- 问题涉及的技术领域: (硬件、操作系统、驱动、其他) :模型移植
- 问题描述:(尽可能详细的描述在进行什么功能的开发或者测试,发现了什么问题,问题现象,并且提供预期的结果):
在J3开发移植语义分割模型时出现问题,表现如下:
在宿主机上check通过,build通过,生成了在J3可运行的bin文件模型;
在开发板上按流程运行模型出现Segmentation fault;
已在开发板上成功运行yolov5模型;
两个模型运行均为solution_example模板修改制作。
经自己测试LOG打印发现preprocess已经完成,postprocess还未进入,推测为模型推理过程出错,此推测与宿主机上测试结果相违背。
程序版本分别为:horizon_xj3_open_explorer_v1.7.5_20211122;J3-PlatformSDK-PL2.1-V1.0.0-20210608。
4. 复现概率:必现
5. 提供必要的问题日志:
正常运行LOG:
[HorizonRT] The model builder version = 1.3.64
(inference_engine_dnn.cc:200): found model: LD-GA-IR-640-2-20230719
[HorizonRT] The model builder version = 1.3.64
(inference_engine_dnn.cc:200): found model: LD-GA-IR-640-2-20230719
(video_source.cc:379): =========================================================
(video_source.cc:380): VideoSource VERSION: 1.0.15 Mon Nov 15 19:47:50 2021
(video_source.cc:381): =========================================================
[ERROR][“LOG”][m6cPoc_utility.c:282] sensor_info->extra_mode :0
[ERROR][“LOG”][m6cPoc_utility.c:127] sensor_m6cPoc_9296_init,5,0x48
(vps_module_vapi.cc:313): group_id: 0 this_src_chn: 0 this_ipu_chn: 0 ipu_data_type: 0
[ERROR][“LOG”][m6cPoc_utility.c:365] sensor_m6cPoc_9296_start,5,0x48
[DIAG_ERROR][diag_lib_app.cpp:132] Please start diag service first
(main.cc:81): video_source_plg Start
(main.cc:83): smart_plg Start
(main.cc:85): websocket_plg Start
(image_process.cc:297): Resize output 256 160
(image_process.cc:297): Resize output 256 160
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 0.000209167 LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 0.000154667 LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0365547 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(test_postprocess.cc:57): YoloV5PostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0380149 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(pidnet_postprocess.cc:57): PIDNETPostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(image_process.cc:297): Resize output 256 160
(web_display_plugin.cc:168): open config file /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq failed
(image_process.cc:297): Resize output 256 160
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 3.1167e-05 LD-GA-IR-640-2-20230719
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 2.7e-05 LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0112875 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(test_postprocess.cc:57): YoloV5PostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0111994 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(pidnet_postprocess.cc:57): PIDNETPostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(web_display_plugin.cc:168): open config file /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq failed
(image_process.cc:297): Resize output 256 160
(image_process.cc:297): Resize output 256 160
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 3.2084e-05 LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 1.65e-05 LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0112856 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(pidnet_postprocess.cc:57): PIDNETPostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0112655 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(test_postprocess.cc:57): YoloV5PostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(web_display_plugin.cc:168): open config file /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq failed
(image_process.cc:297): Resize output 256 160
(image_process.cc:297): Resize output 256 160
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 2.7958e-05 LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 9.4e-05 LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0109415 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(test_postprocess.cc:57): YoloV5PostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0118326 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(pidnet_postprocess.cc:57): PIDNETPostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
分割模型移植报错LOG:
[HorizonRT] The model builder version = 1.3.64
(inference_engine_dnn.cc:200): found model: LD-GA-IR-640-2-20230719
[HorizonRT] The model builder version = 1.3.64
(inference_engine_dnn.cc:200): found model: Seg-PIDNet-IR-640-2-20230720
(video_source.cc:379): =========================================================
(video_source.cc:380): VideoSource VERSION: 1.0.15 Mon Nov 15 19:47:50 2021
(video_source.cc:381): =========================================================
[ERROR][“LOG”][m6cPoc_utility.c:282] sensor_info->extra_mode :0
[ERROR][“LOG”][m6cPoc_utility.c:127] sensor_m6cPoc_9296_init,5,0x48
(vps_module_vapi.cc:313): group_id: 0 this_src_chn: 0 this_ipu_chn: 0 ipu_data_type: 0
[ERROR][“LOG”][m6cPoc_utility.c:365] sensor_m6cPoc_9296_start,5,0x48
[DIAG_ERROR][diag_lib_app.cpp:132] Please start diag service first
(executor.cc:99): task_queue_ is empty
(main.cc:81): video_source_plg Start
(main.cc:83): smart_plg Start
(main.cc:85): websocket_plg Start
(image_process.cc:297): Resize output 368 288
(image_process.cc:297): Resize output 256 160
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:179): task_time : 0.0001835 LD-GA-IR-640-2-20230719
(inferencer.cc:166): preprocessing finished Seg-PIDNet-IR-640-2-20230720
(inferencer.cc:179): task_time : 5.7833e-05 Seg-PIDNet-IR-640-2-20230720
(inferencer.cc:194): infer_time : 0.0281339 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(test_postprocess.cc:57): YoloV5PostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(image_process.cc:297): Resize output 256 160
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 3.6292e-05 LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0112798 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(test_postprocess.cc:57): YoloV5PostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
(image_process.cc:297): Resize output 256 160
(pyramid_preprocess.cc:137): Pyramid Preprocessing finished
(inferencer.cc:166): preprocessing finished LD-GA-IR-640-2-20230719
(inferencer.cc:179): task_time : 7.0375e-05 LD-GA-IR-640-2-20230719
(inferencer.cc:194): infer_time : 0.0109589 LD-GA-IR-640-2-20230719
(inferencer.cc:195): postprocessing start LD-GA-IR-640-2-20230719
(test_postprocess.cc:57): YoloV5PostProcess Execute 1
(inferencer.cc:197): postprocessing finished LD-GA-IR-640-2-20230719
Segmentation fault (core dumped)
6. 软件上是否有做自定义修改:
修改model_inference的后处理以适配我移植的模型,在solution_example上修改摄像头和模型配置以适配我使用的摄像头和模型