瀏覽代碼

fix: 修改目标检测模型的路径为上一级目录

WANGKANG 7 月之前
父節點
當前提交
d6c0d01f71

+ 1 - 1
taais-modules/taais-biz/src/main/java/com/taais/biz/service/impl/TargetDetectionServiceImpl.java

@@ -268,7 +268,7 @@ public class TargetDetectionServiceImpl extends BaseServiceImpl<TargetDetectionM
         startTaskConfig.setLog_path(entity.getOutputPath() + File.separator + getLogFileName(entity));
 
         if (BizConstant.AlgorithmType.REASONING.equals(algorithmConfigTrack.getType())) {
-            String modelPath = algorithmModelTrack.getModelAddress() + File.separator + algorithmModelTrack.getModelName();
+            String modelPath = algorithmModelTrack.getModelAddress();
             startTaskConfig.setModel_path(modelPath);
         } else if (BizConstant.AlgorithmType.TRAIN.equals(algorithmConfigTrack.getType())) {
             // 这时候需要在之前的基础上,添加类别的路径