From 7106611f42c54da23d477efb81d66a5e57a38915 Mon Sep 17 00:00:00 2001
From: zhangjixing <775834166@qq.com>
Date: 星期五, 18 一月 2019 10:30:04 +0800
Subject: [PATCH] 

---
 QiaoJiaSystem/YoloServer/main.cpp |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/QiaoJiaSystem/YoloServer/main.cpp b/QiaoJiaSystem/YoloServer/main.cpp
index e223edd..a44a900 100644
--- a/QiaoJiaSystem/YoloServer/main.cpp
+++ b/QiaoJiaSystem/YoloServer/main.cpp
@@ -23,13 +23,24 @@
 //    adapter->add(new YoloDetectServerI(), Ice::stringToIdentity(identity));
 //    adapter->activate();
 //    ich->waitForShutdown();
-    appPref.setIntData("gpu.index", 0);
-    appPref.setFloatData("thresh.detect", 0.7);
 
-    IceRpcServer<YoloDetectServerI> server("yoloServer", 10003, "tcp");
+//    if (argc < 3) {
+//        ERR("argc error");
+//        return -1;
+//    }
+
+    int gpuindex = 1;
+    int poolNum = 1;
+    int portNum = 10003;
+
+    appPref.setIntData("gpu.index", gpuindex);
+    appPref.setFloatData("thresh.detect", 0.7);
+    appPref.setIntData("poolNum", poolNum);
+
+    IceRpcServer<YoloDetectServerI> server("yoloServer", portNum, "tcp");
     server.setMessageSizeMax(1024 * 1024 * 50);
-    server.setPoolInitSize(5);
-    server.setPoolMaxSize(5);
+    server.setPoolInitSize(1);
+    server.setPoolMaxSize(1);
     server.runWaitShutDown();
     return 0;
 }

--
Gitblit v1.8.0