mirror of
https://github.com/Ascend/ascend_community_projects.git
synced 2025-09-27 12:12:11 +08:00
wz fix
This commit is contained in:
@@ -207,13 +207,6 @@ APP_ERROR RetinafaceDetection::WriteResult(
|
|||||||
std::string restxtPath = "./widerface_txt/";
|
std::string restxtPath = "./widerface_txt/";
|
||||||
restxtPath += cataloge;
|
restxtPath += cataloge;
|
||||||
restxtPath += "/";
|
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 += pictureName;
|
||||||
restxtPath += ".txt";
|
restxtPath += ".txt";
|
||||||
std::ofstream outfile;
|
std::ofstream outfile;
|
||||||
|
@@ -31,7 +31,7 @@ std::string imgFile;
|
|||||||
void InitRetinafaceParam(InitParam& initParam) {
|
void InitRetinafaceParam(InitParam& initParam) {
|
||||||
initParam.deviceId = 0;
|
initParam.deviceId = 0;
|
||||||
initParam.checkTensor = true;
|
initParam.checkTensor = true;
|
||||||
initParam.modelPath = "/home/dongyu1/Retinaface0/model/newRetinaface.om";
|
initParam.modelPath = "./model/newRetinaface.om";
|
||||||
initParam.classNum = 1;
|
initParam.classNum = 1;
|
||||||
initParam.labelPath = "";
|
initParam.labelPath = "";
|
||||||
initParam.ImagePath = "";
|
initParam.ImagePath = "";
|
||||||
|
Reference in New Issue
Block a user