This commit is contained in:
吴镇
2022-12-02 03:14:01 +08:00
parent cbc67f03e0
commit 74bcc4030a
2 changed files with 1 additions and 8 deletions

View File

@@ -207,13 +207,6 @@ APP_ERROR RetinafaceDetection::WriteResult(
std::string restxtPath = "./widerface_txt/";
restxtPath += cataloge;
restxtPath += "/";
if (_access(restxtPath.c_str(), 0) == -1) {
int ret = _mkdir(restxtPath.c_str());
if (ret == -1) {
LogInfo << "create file failed.";
return APP_ERR_OK;
}
}
restxtPath += pictureName;
restxtPath += ".txt";
std::ofstream outfile;

View File

@@ -31,7 +31,7 @@ std::string imgFile;
void InitRetinafaceParam(InitParam& initParam) {
initParam.deviceId = 0;
initParam.checkTensor = true;
initParam.modelPath = "/home/dongyu1/Retinaface0/model/newRetinaface.om";
initParam.modelPath = "./model/newRetinaface.om";
initParam.classNum = 1;
initParam.labelPath = "";
initParam.ImagePath = "";