一、问题现象(附报错日志上下文):
测试"samples/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video_DVPP_with_AIPP"例程,编译完成后,使用一段1920*1080的mp4文件进行测试,推理模型文件为yolov3.om,运行时报错说模型输入size不对,相关log如下:
[WARNING] Input size verify failed input[0] size: 519168, provide size : 259584
[ERROR] Execute model(../model/yolov3.om) error:500002
[ERROR] Execute model inference failed, error: 309
[ERROR] sample process failed
查看了例程中做resize部分的代码,在/samples/cplusplus/common/acllite/src/ResizeHelper.cpp的116行InitResizeOutputDesc函数中已经已经把resize之后的输出图片格式定为PIXEL_FORMAT_YUV_SEMIPLANAR_420,和yolov3所需要的1x416x416x3的size不匹配,于是我把InitResizeOutputDesc函数中的输出图片格式改为PIXEL_FORMAT_RGB_888,最后程序还是报错,信息如下:
[ERROR] acldvppVpcResizeAsync failed, error: 100000
[WARNING] Input size verify failed input[0] size: 519168, provide size : 0
[ERROR] Execute model(../model/yolov3.om) error:500002
[ERROR] Execute model inference failed, error: 309
[ERROR] sample process failed
关于完整的日志文件,见附件。
目前我有两个疑问:
1.例程里面输入的图像经过dvpp resize操作后size大小与model input需求的不一致,请问是我那里没用对吗?
(关于模型文件,我使用opencv resize处理之后再使用模型推理,推理结果是正确的。)
2.dvpp resize是不支持PIXEL_FORMAT_YUV_SEMIPLANAR_420以外的格式吗?
我使用格式为PIXEL_FORMAT_RGB_888的输入最后还是得到了如下的错误:
[ERROR] acldvppVpcResizeAsync failed, error: 100000
[WARNING] Input size verify failed input[0] size: 519168, provide size : 0
[ERROR] Execute model(../model/yolov3.om) error:500002
[ERROR] Execute model inference failed, error: 309
[ERROR] sample process failed
二、软件版本:
-- CANN 版本:
package_name=Ascend-cann-toolkit
version=7.0.RC1
innerversion=V100R001C13SPC005B246
compatible_version=[V100R001C29],[V100R001C30],[V100R001C13],[V100R003C10],[V100R003C11]
arch=aarch64
os=linux
path=/usr/local/Ascend/ascend-toolkit/7.0.RC1/aarch64-linux
--Tensorflow/Pytorch/MindSpore 版本:
未使用
--Python 版本 :
未使用
-- MindStudio版本 :
未使用
--操作系统版本:
Linux davinci-mini 5.10.0+ #1 SMP Fri Oct 20 19:51:59 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
三、测试步骤:
见一。
四、日志信息:
链接:https://pan.baidu.com/s/1buTkgwJpK3HRGLbTjd6VMQ
提取码:1tyg
一、问题现象(附报错日志上下文):
测试"samples/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video_DVPP_with_AIPP"例程,编译完成后,使用一段1920*1080的mp4文件进行测试,推理模型文件为yolov3.om,运行时报错说模型输入size不对,相关log如下:
[WARNING] Input size verify failed input[0] size: 519168, provide size : 259584
[ERROR] Execute model(../model/yolov3.om) error:500002
[ERROR] Execute model inference failed, error: 309
[ERROR] sample process failed
查看了例程中做resize部分的代码,在/samples/cplusplus/common/acllite/src/ResizeHelper.cpp的116行InitResizeOutputDesc函数中已经已经把resize之后的输出图片格式定为PIXEL_FORMAT_YUV_SEMIPLANAR_420,和yolov3所需要的1x416x416x3的size不匹配,于是我把InitResizeOutputDesc函数中的输出图片格式改为PIXEL_FORMAT_RGB_888,最后程序还是报错,信息如下:
[ERROR] acldvppVpcResizeAsync failed, error: 100000
[WARNING] Input size verify failed input[0] size: 519168, provide size : 0
[ERROR] Execute model(../model/yolov3.om) error:500002
[ERROR] Execute model inference failed, error: 309
[ERROR] sample process failed
关于完整的日志文件,见附件。
目前我有两个疑问:
1.例程里面输入的图像经过dvpp resize操作后size大小与model input需求的不一致,请问是我那里没用对吗?
(关于模型文件,我使用opencv resize处理之后再使用模型推理,推理结果是正确的。)
2.dvpp resize是不支持PIXEL_FORMAT_YUV_SEMIPLANAR_420以外的格式吗?
我使用格式为PIXEL_FORMAT_RGB_888的输入最后还是得到了如下的错误:
[ERROR] acldvppVpcResizeAsync failed, error: 100000
[WARNING] Input size verify failed input[0] size: 519168, provide size : 0
[ERROR] Execute model(../model/yolov3.om) error:500002
[ERROR] Execute model inference failed, error: 309
[ERROR] sample process failed
二、软件版本:
-- CANN 版本:
package_name=Ascend-cann-toolkit
version=7.0.RC1
innerversion=V100R001C13SPC005B246
compatible_version=[V100R001C29],[V100R001C30],[V100R001C13],[V100R003C10],[V100R003C11]
arch=aarch64
os=linux
path=/usr/local/Ascend/ascend-toolkit/7.0.RC1/aarch64-linux
--Tensorflow/Pytorch/MindSpore 版本:
未使用
--Python 版本 :
未使用
-- MindStudio版本 :
未使用
--操作系统版本:
Linux davinci-mini 5.10.0+ #1 SMP Fri Oct 20 19:51:59 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
三、测试步骤:
见一。
四、日志信息:
链接:https://pan.baidu.com/s/1buTkgwJpK3HRGLbTjd6VMQ
提取码:1tyg