轻量化yolov5,onnx转om报错
收藏回复举报
轻量化yolov5,onnx转om报错
t('forum.solved') 已解决
发表于2024-08-28 19:53:53
0 查看
(MindSpore) [ma-user work]$atc --model=v5l_e_pp_320.onnx --framework=5 --output=BEST  --input_format=NCHW --input_shape="images:1,3,320,320" --log=error --soc_version=Ascend910A 

ATC start working now, please wait for a moment. 

... 

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

E20007: 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] Run graph fusion pass failed, pass name:NonMaxSuppressionV6Fusion, pass type:built-in-ai-core-graph-pass,                     return value is 4294967295.[FUNC:RunOnePassFusion][FILE:graph_fusion.cc][LINE:1170] 

        [GraphOpt][FirstRoundFusion] MainGraph[BEST]: RunGraphFusion not success.[FUNC:Fusion][FILE:graph_fusion.cc][LINE:99] 

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

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

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

        GenerateOfflineModel execute failed. 

我要发帖子