| | |
| | | #include <THFeature_i.h> |
| | | |
| | | FaceExtractServerI::FaceExtractServerI() { |
| | | long threadMax = appPref.getLongData("thread.max"); |
| | | long gpuIndex = appPref.getLongData("gpu.index"); |
| | | long threadMax = appPref.getIntData("thread.max"); |
| | | long gpuIndex = appPref.getIntData("gpu.index"); |
| | | for (int i = 0; i < threadMax; i++) { |
| | | extractResourcesManager.pushResource(i); |
| | | } |
| | |
| | | } |
| | | return feature; |
| | | } else { |
| | | throw std::runtime_error("shareMemory attach faild"); |
| | | ERR("shareMemory attach faild"); |
| | | // throw std::runtime_error("shareMemory attach faild"); |
| | | } |
| | | |
| | | } |