update: application-docker.yml针对读取到配置文件错误的问题。

This commit is contained in:
divenswu 2023-07-18 10:03:56 +08:00
parent 4e49a99e7d
commit 09ab5b98e6
2 changed files with 5 additions and 2 deletions

View File

@ -179,7 +179,10 @@ public class ModelConfig {
private String[] getModelPath(String modelName, String modelPath[]){
String basePath = "face-search-core/src/main/resources/";
if(StringUtils.isNotEmpty(this.baseModelPath)){
basePath = this.baseModelPath.endsWith("/") ? this.baseModelPath : this.baseModelPath +"/";
basePath = this.baseModelPath;
basePath = basePath.replaceAll("^\'|\'$", "");
basePath = basePath.replaceAll("^\"|\"$", "");
basePath = basePath.endsWith("/") ? basePath : basePath +"/";
}
if((null == modelPath || modelPath.length != 3) && "PcnNetworkFaceDetection".equalsIgnoreCase(modelName)){

View File

@ -22,7 +22,7 @@ logging:
# 模型配置
visual:
model:
baseModelPath: ${VISUAL_MODEL_BASE_MODEL_PATH:'/app/face-search/'}
baseModelPath: ${VISUAL_MODEL_BASE_MODEL_PATH:/app/face-search/}
faceDetection:
name: ${VISUAL_MODEL_FACEDETECTION_NAME:InsightScrfdFaceDetection}
modelPath: ${VISUAL_MODEL_FACEDETECTION_PATH:}