|
@@ -204,6 +204,13 @@ public class TargetDetectionServiceImpl extends BaseServiceImpl<TargetDetectionM
|
|
|
throw new RuntimeException("算法配置参数为空");
|
|
|
}
|
|
|
|
|
|
+ String unzipPath = getUnZipDirPath(ossEntity);
|
|
|
+ File file = new File(unzipPath);
|
|
|
+ if (!file.exists()) {
|
|
|
+ String resourcePath = getResourcePath(ossService.getById(entity.getInputOssId()));
|
|
|
+ ZipUtils.unzip(resourcePath, unzipPath);
|
|
|
+ }
|
|
|
+
|
|
|
Map<String, Object> algorithmParameters = getAlgorithmParameters(algorithmConfig.getParameters(),
|
|
|
entityBo.getOtherParams());
|
|
|
|
|
@@ -241,12 +248,6 @@ public class TargetDetectionServiceImpl extends BaseServiceImpl<TargetDetectionM
|
|
|
// 步骤 5. 将算法参数map序列化为json字符串,保存到数据库中
|
|
|
entity.setAlgorithmParameters(JsonUtils.toJsonString(result));
|
|
|
|
|
|
- File file = new File(entity.getInputPath());
|
|
|
- if (!file.exists()) {
|
|
|
- String resourcePath = getResourcePath(ossService.getById(entity.getInputOssId()));
|
|
|
- ZipUtils.unzip(resourcePath, entity.getInputPath());
|
|
|
- }
|
|
|
-
|
|
|
makeDir(entity.getInputPath());
|
|
|
makeDir(entity.getOutputPath());
|
|
|
|