| | |
| | | // return -1; |
| | | // } |
| | | |
| | | int gpuindex = 0; |
| | | 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.85); |
| | | 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; |
| | | } |