使用msame工具推理出错
收藏回复举报
使用msame工具推理出错
t('forum.solved') 已解决
发表于2024-04-03 12:33:17
0 查看

使用msame工具推理出错,错误如下:

(base) root@davinci-mini:/home/tools/msame/out# ./msame --model ../vgg16.om  --input ../images --output ../out1 --outfmt BIN 

[INFO] acl init success 

[INFO] open device 0 success 

[INFO] create context success 

[INFO] create stream success 

[INFO] get run mode success 

[INFO] load model ../vgg16.om success 

[INFO] create model description success 

[INFO] get input dynamic gear count success 

[INFO] create model output success 

../out1/202248_4_4_41_794742 

[INFO] start to process file:../images/0_1.r1.107.bin 

E19025: Input tensor is invalid. Reason: The input memory provided by the user, plus 64 bytes for data alignment, is smaller than op_size in the model, which is an illegal behavior. input size=602112, op_size=1204256. 

        TraceBack (most recent call last): 

        Assert ((UpdateZeroCopyArgs(input_data, output_data)) == ge::SUCCESS) failed[FUNC:CopyModelData][FILE:davinci_model.cc][LINE:4358] 

        [Exec][Model]Execute model failed, ge result[1343225857], modelId[1][FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        [Exec][Model]modelId[1] execute failed, result[500002][FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145] 

 

[ERROR] execute model failed, modelId is 1 

[ERROR] model execute failed 

[INFO] start to process file:../images/0_1.r1.109.bin 

E19025: Input tensor is invalid. Reason: The number of input tensor from user is not equal to the number of input tensor in the model, total tensor from user=2, total tensor in model=1. 

        TraceBack (most recent call last): 

        Assert ((UpdateZeroCopyArgs(input_data, output_data)) == ge::SUCCESS) failed[FUNC:CopyModelData][FILE:davinci_model.cc][LINE:4358] 

        [Exec][Model]Execute model failed, ge result[1343225857], modelId[1][FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] 

        [Exec][Model]modelId[1] execute failed, result[500002][FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145] 

 

[ERROR] execute model failed, modelId is 1 

[ERROR] model execute failed 

[INFO] unload model success, model Id is 1 

[INFO] destroy model input success 

[ERROR] Sample process failed 

[INFO] end to destroy stream 

[INFO] end to destroy context 

[INFO] end to reset device is 0 

[INFO] end to finalize acl 

我要发帖子