|
|
|
@ -360,20 +360,18 @@ int main(int argc, char** argv)
|
|
|
|
return runServer(argv[2], argv[3], argv[4]);
|
|
|
|
return runServer(argv[2], argv[3], argv[4]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 默认单次模式
|
|
|
|
// Single-run mode requires explicit paths. Do not fall back to exeDir\\HX_NWTM.dll,
|
|
|
|
std::string dataDir = exeDir + "\\..\\..\\nmWTAI-ML\\data\\temp";
|
|
|
|
// because Runner and HX_NWTM.dll must be built against the same PEBI header version.
|
|
|
|
|
|
|
|
if (argc < 6) {
|
|
|
|
std::string datasetPath = dataDir + "\\dataset.bin";
|
|
|
|
std::cerr << "Usage: runner.exe <dataset.bin> <params.bin> <result.bin> <HX_NWTM.dll> <license.dat>\n";
|
|
|
|
std::string paramsPath = dataDir + "\\params.bin";
|
|
|
|
return 2;
|
|
|
|
std::string resultPath = dataDir + "\\result.bin";
|
|
|
|
}
|
|
|
|
std::string dllPath = exeDir + "\\HX_NWTM.dll";
|
|
|
|
|
|
|
|
std::string licPath = exeDir + "\\..\\..\\..\\Bin\\Res\\license\\HXNWTM_license.dat";
|
|
|
|
std::string datasetPath = argv[1];
|
|
|
|
|
|
|
|
std::string paramsPath = argv[2];
|
|
|
|
if (argc >= 2) datasetPath = argv[1];
|
|
|
|
std::string resultPath = argv[3];
|
|
|
|
if (argc >= 3) paramsPath = argv[2];
|
|
|
|
std::string dllPath = argv[4];
|
|
|
|
if (argc >= 4) resultPath = argv[3];
|
|
|
|
std::string licPath = argv[5];
|
|
|
|
if (argc >= 5) dllPath = argv[4];
|
|
|
|
|
|
|
|
if (argc >= 6) licPath = argv[5];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!fileExistsA(datasetPath)) { std::cerr << "ERROR: dataset not found\n"; return 10; }
|
|
|
|
if (!fileExistsA(datasetPath)) { std::cerr << "ERROR: dataset not found\n"; return 10; }
|
|
|
|
if (!fileExistsA(paramsPath)) { std::cerr << "ERROR: params not found\n"; return 11; }
|
|
|
|
if (!fileExistsA(paramsPath)) { std::cerr << "ERROR: params not found\n"; return 11; }
|
|
|
|
|