华为计算微信公众号
昇腾AI开发者公众号
华为计算微博
华为计算今日头条
基于MindeX SDK的示例,以retinaface为检测,arcface为特征编码构建pipeline,pipeline为
{ "detection": { "stream_config": { "deviceId": "0" }, "mxpi_rtspsrc0": { "factory": "mxpi_rtspsrc", "props": { "rtspUrl": "rtsp://****", "channelId": "0", "fpsMode": "1" }, "next": "queue0" }, "queue0": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_videodecoder0" }, "mxpi_videodecoder0": { "factory": "mxpi_videodecoder", "props": { "inputVideoFormat": "H264", "outputImageFormat": "YUV420SP_NV12", "vdecChannelId": "0", "outMode": "1" }, "next": "queue11" }, "queue11":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_imageresize0" }, "mxpi_imageresize0": { "props": { "dataSource":"mxpi_videodecoder0", "resizeHeight": "480", "resizeWidth": "640", "cvProcessor": "ascend", "resizeType":"Resizer_KeepAspectRatio_Fit", "paddingType":"Padding_RightDown" }, "factory": "mxpi_imageresize", "next": "queue2" }, "queue2": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_tensorinfer0" }, "mxpi_tensorinfer0": { "props": { "dataSource": "mxpi_imageresize0", "modelPath": "models/onnx_retinaface_1.om", "waitingTime":"5" }, "factory": "mxpi_tensorinfer", "next": "queue3" }, "queue3": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_objectpostprocessor0" }, "mxpi_objectpostprocessor0": { "props": { "dataSource": "mxpi_tensorinfer0", "postProcessConfigPath": "config/face.cfg", "postProcessLibPath": "/home/postprocess/build/libRetinaFacePostProcess.so" }, "factory": "mxpi_objectpostprocessor", "next": "queue4" }, "queue4": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_imagecrop0" }, "mxpi_imagecrop0": { "props": { "dataSource": "mxpi_objectpostprocessor0", "resizeHeight": "112", "resizeWidth": "112", "resizeType": "Resizer_Stretch" }, "factory": "mxpi_imagecrop", "next": "queue12" }, "queue12":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_motsimplesortV20" }, "mxpi_motsimplesortV20": { "props": { "dataSourceDetection": "mxpi_objectpostprocessor0" }, "factory": "mxpi_motsimplesortV2", "next": "queue13" }, "queue13":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_trackidreplaceclassname0" }, "mxpi_trackidreplaceclassname0": { "props": { "dataSource": "mxpi_objectpostprocessor0", "motSource": "mxpi_motsimplesortV20" }, "factory": "mxpi_trackidreplaceclassname", "next": "queue14" }, "queue14":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_tensorinfer1" }, "mxpi_tensorinfer1": { "props": { "dataSource": "mxpi_imagecrop0", "modelPath": "models/arcface_amtc.om", "outputDeviceId":"-1" }, "factory": "mxpi_tensorinfer", "next": "queue15" }, "queue15":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "appsink0" }, "appsink0": { "props": { "blocksize": "4096000" }, "factory": "appsink" } } }
程序一开始可以运行,时间一长会出现帧数变为0,然后出现报错,报错为
E20231109 18:18:10.225554 15864 DvppWrapperWithAcl.cpp:236] [507018][Error code unknown] Failed to send frame. E20231109 18:18:10.225818 15864 MxpiVideoDecoder.cpp:124] [mxpi_videodecoder0][2009][DVPP: decode H264 or H265 fail] Decode video failed. GetProtobuf error. errorCode=2009 E20231109 18:18:10.306629 15864 DvppWrapperWithAcl.cpp:236] [507018][Error code unknown] Failed to send frame. E20231109 18:18:10.306900 15864 MxpiVideoDecoder.cpp:124] [mxpi_videodecoder0][2009][DVPP: decode H264 or H265 fail] Decode video failed. GetProtobuf error. errorCode=2009 E20231109 18:18:10.348356 15864 DvppWrapperWithAcl.cpp:236] [507018][Error code unknown] Failed to send frame. E20231109 18:18:10.348908 15864 MxpiVideoDecoder.cpp:124] [mxpi_videodecoder0][2009][DVPP: decode H264 or H265 fail] Decode video failed. GetProtobuf error. errorCode=2009 E20231109 18:18:10.379173 15864 DvppWrapperWithAcl.cpp:236] [507018][Error code unknown] Failed to send frame. E20231109 18:18:10.379459 15864 MxpiVideoDecoder.cpp:124] [mxpi_videodecoder0][2009][DVPP: decode H264 or H265 fail] Decode video failed. GetProtobuf error. errorCode=2009 E20231109 18:18:10.418869 15864 DvppWrapperWithAcl.cpp:236] [507018][Error code unknown] Failed to send frame. E20231109 18:18:10.419144 15864 MxpiVideoDecoder.cpp:124] [mxpi_videodecoder0][2009][DVPP: decode H264 or H265 fail] Decode video failed. GetProtobuf error. errorCode=2009 E20231109 18:18:10.499534 15864 DvppWrapperWithAcl.cpp:236] [507018][Error code unknown] Failed to send frame. E20231109 18:18:10.499802 15864 MxpiVideoDecoder.cpp:124] [mxpi_videodecoder0][2009][DVPP: decode H264 or H265 fail] Decode video failed. GetProtobuf error. errorCode=2009 E20231109 18:18:10.541091 15864 DvppWrapperWithAcl.cpp:236] [507018][Error code unknown] Failed to send frame. E20231109 18:18:10.541550 15864 MxpiVideoDecoder.cpp:124] [mxpi_videodecoder0][2009][DVPP: decode H264 or H265 fail] Decode video failed. GetProtobuf error. errorCode=2009
模型已经amtc量化,使用图片进行测试正常,短时间视频流正常,htop查看cpu与内存正常
如何修改使程序可长时间稳定运行
我要发帖子
基于MindeX SDK的示例,以retinaface为检测,arcface为特征编码构建pipeline,pipeline为
{ "detection": { "stream_config": { "deviceId": "0" }, "mxpi_rtspsrc0": { "factory": "mxpi_rtspsrc", "props": { "rtspUrl": "rtsp://****", "channelId": "0", "fpsMode": "1" }, "next": "queue0" }, "queue0": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_videodecoder0" }, "mxpi_videodecoder0": { "factory": "mxpi_videodecoder", "props": { "inputVideoFormat": "H264", "outputImageFormat": "YUV420SP_NV12", "vdecChannelId": "0", "outMode": "1" }, "next": "queue11" }, "queue11":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_imageresize0" }, "mxpi_imageresize0": { "props": { "dataSource":"mxpi_videodecoder0", "resizeHeight": "480", "resizeWidth": "640", "cvProcessor": "ascend", "resizeType":"Resizer_KeepAspectRatio_Fit", "paddingType":"Padding_RightDown" }, "factory": "mxpi_imageresize", "next": "queue2" }, "queue2": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_tensorinfer0" }, "mxpi_tensorinfer0": { "props": { "dataSource": "mxpi_imageresize0", "modelPath": "models/onnx_retinaface_1.om", "waitingTime":"5" }, "factory": "mxpi_tensorinfer", "next": "queue3" }, "queue3": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_objectpostprocessor0" }, "mxpi_objectpostprocessor0": { "props": { "dataSource": "mxpi_tensorinfer0", "postProcessConfigPath": "config/face.cfg", "postProcessLibPath": "/home/postprocess/build/libRetinaFacePostProcess.so" }, "factory": "mxpi_objectpostprocessor", "next": "queue4" }, "queue4": { "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_imagecrop0" }, "mxpi_imagecrop0": { "props": { "dataSource": "mxpi_objectpostprocessor0", "resizeHeight": "112", "resizeWidth": "112", "resizeType": "Resizer_Stretch" }, "factory": "mxpi_imagecrop", "next": "queue12" }, "queue12":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_motsimplesortV20" }, "mxpi_motsimplesortV20": { "props": { "dataSourceDetection": "mxpi_objectpostprocessor0" }, "factory": "mxpi_motsimplesortV2", "next": "queue13" }, "queue13":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_trackidreplaceclassname0" }, "mxpi_trackidreplaceclassname0": { "props": { "dataSource": "mxpi_objectpostprocessor0", "motSource": "mxpi_motsimplesortV20" }, "factory": "mxpi_trackidreplaceclassname", "next": "queue14" }, "queue14":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "mxpi_tensorinfer1" }, "mxpi_tensorinfer1": { "props": { "dataSource": "mxpi_imagecrop0", "modelPath": "models/arcface_amtc.om", "outputDeviceId":"-1" }, "factory": "mxpi_tensorinfer", "next": "queue15" }, "queue15":{ "props": { "max-size-buffers": "200" }, "factory": "queue", "next": "appsink0" }, "appsink0": { "props": { "blocksize": "4096000" }, "factory": "appsink" } } }程序一开始可以运行,时间一长会出现帧数变为0,然后出现报错,报错为
模型已经amtc量化,使用图片进行测试正常,短时间视频流正常,htop查看cpu与内存正常
如何修改使程序可长时间稳定运行