From 99221e4721a1246883465c2b52fbff14eb9aaa7a Mon Sep 17 00:00:00 2001
From: pans <pansen626@sina.com>
Date: 星期六, 30 三月 2019 12:12:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/yangwu1.3' into yangwu1.3
---
QiaoJiaSystem/YoloServer/main.cpp | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/QiaoJiaSystem/YoloServer/main.cpp b/QiaoJiaSystem/YoloServer/main.cpp
index bd62a14..ff7aac0 100644
--- a/QiaoJiaSystem/YoloServer/main.cpp
+++ b/QiaoJiaSystem/YoloServer/main.cpp
@@ -30,18 +30,28 @@
// return -1;
// }
- int gpuindex = 1;
- int poolNum = 1;
- int portNum = 10003;
+// int gpuindex = 0;
+// int poolNum = 1;
+// int portNum = 10003;
+//
+// appPref.setIntData("gpu.index", gpuindex);
+// appPref.setFloatData("thresh.detect", 0.85);
+// appPref.setIntData("poolNum", poolNum);
- appPref.setIntData("gpu.index", gpuindex);
- appPref.setFloatData("thresh.detect", 0.7);
- appPref.setIntData("poolNum", poolNum);
+ if (argc < 4) {
+ assert("t_value.size()");
+ }
+ appPref.setIntData("gpu.index", atoi(argv[1]));
+ appPref.setIntData("RpcYOLOPort", atoi(argv[2]));
+ appPref.setFloatData("thresh.detect", atof(argv[3]));
- IceRpcServer<YoloDetectServerI> server("yoloServer", portNum, "tcp");
+// appPref.setIntData("poolNum", 1);//YOlO涓嶈兘澶氱嚎绋嬶紝瀹规槗宕╂簝
+
+
+ IceRpcServer<YoloDetectServerI> server("yoloServer", appPref.getIntData("RpcYOLOPort"), "tcp");
server.setMessageSizeMax(1024 * 1024 * 50);
- server.setPoolInitSize(1);
- server.setPoolMaxSize(1);
+ server.setPoolInitSize(1);//YOlO涓嶈兘澶氱嚎绋嬶紝瀹规槗宕╂簝
+ server.setPoolMaxSize(1);//YOlO涓嶈兘澶氱嚎绋嬶紝瀹规槗宕╂簝
server.runWaitShutDown();
return 0;
}
--
Gitblit v1.8.0