mirror of
https://gitee.com/open-visual/face-search.git
synced 2025-06-10 19:19:56 +08:00
commit
20e1e8cb62
@ -179,7 +179,10 @@ public class ModelConfig {
|
|||||||
private String[] getModelPath(String modelName, String modelPath[]){
|
private String[] getModelPath(String modelName, String modelPath[]){
|
||||||
String basePath = "face-search-core/src/main/resources/";
|
String basePath = "face-search-core/src/main/resources/";
|
||||||
if(StringUtils.isNotEmpty(this.baseModelPath)){
|
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)){
|
if((null == modelPath || modelPath.length != 3) && "PcnNetworkFaceDetection".equalsIgnoreCase(modelName)){
|
||||||
|
@ -22,7 +22,7 @@ logging:
|
|||||||
# 模型配置
|
# 模型配置
|
||||||
visual:
|
visual:
|
||||||
model:
|
model:
|
||||||
baseModelPath: ${VISUAL_MODEL_BASE_MODEL_PATH:'/app/face-search/'}
|
baseModelPath: ${VISUAL_MODEL_BASE_MODEL_PATH:/app/face-search/}
|
||||||
faceDetection:
|
faceDetection:
|
||||||
name: ${VISUAL_MODEL_FACEDETECTION_NAME:InsightScrfdFaceDetection}
|
name: ${VISUAL_MODEL_FACEDETECTION_NAME:InsightScrfdFaceDetection}
|
||||||
modelPath: ${VISUAL_MODEL_FACEDETECTION_PATH:}
|
modelPath: ${VISUAL_MODEL_FACEDETECTION_PATH:}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user