From 307ded5a5ecc5442fe10bf5af41402a322e6a2d8 Mon Sep 17 00:00:00 2001 From: AnRuiXiang Date: Wed, 4 Sep 2024 07:13:24 +0000 Subject: [PATCH] update inference/modelInference/sampleYOLOV7MultiInput/src/main.cpp. Signed-off-by: AnRuiXiang --- inference/modelInference/sampleYOLOV7MultiInput/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inference/modelInference/sampleYOLOV7MultiInput/src/main.cpp b/inference/modelInference/sampleYOLOV7MultiInput/src/main.cpp index 7fd44e01a..ec53f76df 100644 --- a/inference/modelInference/sampleYOLOV7MultiInput/src/main.cpp +++ b/inference/modelInference/sampleYOLOV7MultiInput/src/main.cpp @@ -163,6 +163,7 @@ void CreateALLThreadInstance(vector& threadTbl, AclLiteResou detectPostParam.threadInstName.assign(postName.c_str()); detectPostParam.context = context; detectPostParam.runMode = runMode; + dataInputParam.queueSize = kMsgQueueSize; threadTbl.push_back(detectPostParam); } @@ -171,6 +172,7 @@ void CreateALLThreadInstance(vector& threadTbl, AclLiteResou dataOutputParam.threadInstName.assign(dataOutputName.c_str()); dataOutputParam.context = context; dataOutputParam.runMode = runMode; + dataInputParam.queueSize = kMsgQueueSize; threadTbl.push_back(dataOutputParam); if (outputType == "rtsp") @@ -180,6 +182,7 @@ void CreateALLThreadInstance(vector& threadTbl, AclLiteResou rtspDisplayThreadParam.threadInstName.assign(rtspDisplayName.c_str()); rtspDisplayThreadParam.context = context; rtspDisplayThreadParam.runMode = runMode; + dataInputParam.queueSize = kMsgQueueSize; threadTbl.push_back(rtspDisplayThreadParam); } kExitCount++; -- Gitee