...
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E40021: Failed to compile Op [images_0_huawei_aipp]. (oppath: [Pre-compile /home/dxs/Ascend/7/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/aipp.py failed with errormsg/stack: File "/home/dxs/Ascend/7/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/impl/aipp_comm.py", line 1846, in raise_runtime_error
raise RuntimeError(error_info,
RuntimeError: ({'errCode': 'E81012', 'cause_desc': 'resize only support Hi3796CV300ES, Hi3796CV300CS and SD3403'}, 'Compile op[aipp] failed, cause: resize only support Hi3796CV300ES, Hi3796CV300CS and SD3403.')
], optype: [Aipp])
Solution: See the host log for details, and then check the Python stack where the error log is reported.
TraceBack (most recent call last):
Pre-compile op[images_0_huawei_aipp] failed, oppath[/home/dxs/Ascend/7/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/aipp.py], optype[Aipp], taskID[39]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
[SubGraphOpt][Pre-Comp][Node images_0_huawei_aipp] Failed to pre-compile. Tid is [140358591706880], TaskId is [39] [FUNC:ProcessFailPreCompTask][FILE:tbe_op_store_adapter.cc][LINE:188]
[SubGraphOpt][Pre-Comp]Failed to process failed task. Thread_id is [140358591706880].[FUNC:ParallelPreCompileOp][FILE:tbe_op_store_adapter.cc][LINE:530]
[SubGraphOpt][Pre-Comp]Failed to pre-compile graph [partition0_rank1_new_sub_graph1][FUNC:PreCompileOp][FILE:op_compiler.cc][LINE:733]
Call OptimizeFusedGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:partition0_rank1_new_sub_graph1[FUNC:OptimizeSubGraph][FILE:graph_optimize.cc][LINE:131]
subgraph 0 optimize failed[FUNC:OptimizeSubGraphWithMultiThreads][FILE:graph_manager.cc][LINE:996]
build graph failed, graph id:0, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1615]
GenerateOfflineModel execute failed.
在使用amct对yolov8s模型量化后,使用ascend-toolkit 7.0.0中的act工具把onnx转om时,出现如下错误:
... ATC run failed, Please check the detail log, Try 'atc --help' for more information E40021: Failed to compile Op [images_0_huawei_aipp]. (oppath: [Pre-compile /home/dxs/Ascend/7/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/aipp.py failed with errormsg/stack: File "/home/dxs/Ascend/7/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/impl/aipp_comm.py", line 1846, in raise_runtime_error raise RuntimeError(error_info, RuntimeError: ({'errCode': 'E81012', 'cause_desc': 'resize only support Hi3796CV300ES, Hi3796CV300CS and SD3403'}, 'Compile op[aipp] failed, cause: resize only support Hi3796CV300ES, Hi3796CV300CS and SD3403.') ], optype: [Aipp]) Solution: See the host log for details, and then check the Python stack where the error log is reported. TraceBack (most recent call last): Pre-compile op[images_0_huawei_aipp] failed, oppath[/home/dxs/Ascend/7/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/aipp.py], optype[Aipp], taskID[39]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771] [SubGraphOpt][Pre-Comp][Node images_0_huawei_aipp] Failed to pre-compile. Tid is [140358591706880], TaskId is [39] [FUNC:ProcessFailPreCompTask][FILE:tbe_op_store_adapter.cc][LINE:188] [SubGraphOpt][Pre-Comp]Failed to process failed task. Thread_id is [140358591706880].[FUNC:ParallelPreCompileOp][FILE:tbe_op_store_adapter.cc][LINE:530] [SubGraphOpt][Pre-Comp]Failed to pre-compile graph [partition0_rank1_new_sub_graph1][FUNC:PreCompileOp][FILE:op_compiler.cc][LINE:733] Call OptimizeFusedGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:partition0_rank1_new_sub_graph1[FUNC:OptimizeSubGraph][FILE:graph_optimize.cc][LINE:131] subgraph 0 optimize failed[FUNC:OptimizeSubGraphWithMultiThreads][FILE:graph_manager.cc][LINE:996] build graph failed, graph id:0, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1615] GenerateOfflineModel execute failed.运行命令:
insert_op.cfg:
aipp_op { aipp_mode: static related_input_rank: 0 input_format: YUV420SP_U8 src_image_size_w: 2688 src_image_size_h: 1520 crop: true load_start_pos_w: 0 load_start_pos_h: 0 crop_size_w: 2688 crop_size_h: 1520 csc_switch: true rbuv_swap_switch: false matrix_r0c0: 298 matrix_r0c1: 516 matrix_r0c2: 0 matrix_r1c0: 298 matrix_r1c1: -100 matrix_r1c2: -208 matrix_r2c0: 298 matrix_r2c1: 0 matrix_r2c2: 409 input_bias_0: 16 input_bias_1: 128 input_bias_2: 128 resize: true resize_output_w: 640 resize_output_h: 384 mean_chn_0: 0 mean_chn_1: 0 mean_chn_2: 0 min_chn_0: 0.0 min_chn_1: 0.0 min_chn_2: 0.0 var_reci_chn_0: 0.003921569 var_reci_chn_1: 0.003921569 var_reci_chn_2: 0.003921569 }onnx模型