mirror of
https://gitee.com/open-visual/face-search.git
synced 2024-11-29 17:57:39 +08:00
update: application-docker.yml针对读取到配置文件错误的问题。
This commit is contained in:
parent
4e49a99e7d
commit
09ab5b98e6
@ -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)){
|
||||
|
@ -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:}
|
||||
|
Loading…
Reference in New Issue
Block a user