ATC onnx 转 om 报错
收藏回复举报
ATC onnx 转 om 报错
t('forum.solved') 已解决
发表于2024-08-12 15:55:58
0 查看

求助,onnx 是 detectron2 导出的,用 atc 命令转 om,报错如下

atc --model=./model.onnx --framework=5 --output=./model_om --soc_version=Ascend310 

ATC start working now, please wait for a moment. 

... 

ATC run failed, Please check the detail log, Try 'atc --help' for more information 

E20007: 2024-08-12-15:54:06.780.994 Failed to run graph fusion pass [NonMaxSuppressionV6Fusion]. The pass type is [built-in-ai-core-graph-pass] 

        Solution: 1. If the pass code is custom, check the error log and the verification logic.  2. If the pass code is not custom, perform a complete or partial dump by using npucollect.sh and then send the dump to Huawei technical support for fault locating. 

        TraceBack (most recent call last): 

        The shape of score cannot be negative.[FUNC:IdxValueConstNode][FILE:non_max_suppression_fusion_pass.cc][LINE:121] 

        generate const value of idx fail[FUNC:Fusion][FILE:non_max_suppression_fusion_pass.cc][LINE:211] 

        Failed to run graph fusion pass [NonMaxSuppressionV6Fusion]. The pass type is [built-in-ai-core-graph-pass] 

        [GraphOpt][FirstRoundFusion] Fail to run graph fusion pass[NonMaxSuppressionV6Fusion, built-in-ai-core-graph-pass]. Return value is 4294967295.[FUNC:RunOnePassFusion][FILE:graph_fusion.cc][LINE:1180] 

        [GraphOpt][FirstRoundFusion] SubGraph[If_2027_1_else_branch]: RunGraphFusion unsuccessfully.[FUNC:Fusion][FILE:graph_fusion.cc][LINE:102] 

        [GraphOpt][AfterFusion]Failed to do graph fusion for graph model_om. ErrNo is 4294967295.[FUNC:OptimizeOriginalGraph][FILE:fe_graph_optimizer.cc][LINE:342] 

        Call OptimizeOriginalGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:model_om[FUNC:OptimizeOriginalGraph][FILE:graph_optimize.cc][LINE:167] 

        build graph failed, graph id:0, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1608] 

        GenerateOfflineModel execute failed.

我要发帖子