|
@@ -9,6 +9,7 @@ import com.taais.biz.domain.DataAugmentation;
|
|
|
import com.taais.biz.domain.TransmissionObject;
|
|
|
import com.taais.biz.domain.bo.DataAugmentationBo;
|
|
|
import com.taais.biz.domain.bo.DataAugmentationStartResultBo;
|
|
|
+import com.taais.biz.domain.bo.VideoStableStartResultBo;
|
|
|
import com.taais.biz.domain.vo.DataAugmentationVo;
|
|
|
import com.taais.biz.mapper.DataAugmentationMapper;
|
|
|
import com.taais.biz.service.IDataAugmentationService;
|
|
@@ -236,7 +237,13 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
Path logPath = path.resolveSibling(fileName_without_suffix + "_log");
|
|
|
makeDir(inputPath.toString());
|
|
|
makeDir(outputPath.toString());
|
|
|
-
|
|
|
+ makeDir(localPath.toString());
|
|
|
+// String inputPath = "D:\\program\\taais\\duijie\\code\\" + fileName_without_suffix + "_images";
|
|
|
+// String outputPath = "D:\\program\\taais\\duijie\\code\\" + fileName_without_suffix + "_output";
|
|
|
+// String logPath = "D:\\program\\taais\\duijie\\code\\" + fileName_without_suffix + "_log";
|
|
|
+// makeDir(inputPath);
|
|
|
+// makeDir(outputPath);
|
|
|
+// makeDir(logPath);
|
|
|
ZipUtils.unzip(resourcePath, inputPath.toString());
|
|
|
dataAugmentation.setLog(logPath.toString());
|
|
|
dataAugmentation.setInputPath(inputPath.toString());
|
|
@@ -301,7 +308,7 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult getResult(DataAugmentationStartResultBo dataAugmentationStartResultBo) {
|
|
|
+ public CommonResult getResult(VideoStableStartResultBo dataAugmentationStartResultBo) {
|
|
|
Long id = dataAugmentationStartResultBo.getId();
|
|
|
String status = dataAugmentationStartResultBo.getStatus();
|
|
|
String msg = dataAugmentationStartResultBo.getMsg();
|
|
@@ -363,7 +370,10 @@ public class DataAugmentationServiceImpl extends BaseServiceImpl<DataAugmentatio
|
|
|
return CommonResult.fail("未设置数据增强算法停止推理的url!请在数据字典中设置该算法的停止推理地址!");
|
|
|
}
|
|
|
String data_augmentation_stop_url = sysDictDataVos.get(0).getDictValue();
|
|
|
- HttpResponseEntity responseEntity = sendPostMsg(data_augmentation_stop_url, null);
|
|
|
+ TransmissionObject transmissionObject = new TransmissionObject();
|
|
|
+ transmissionObject.setBizId(dataAugmentation.getId());
|
|
|
+ transmissionObject.setBizType(dataAugmentation.getTaskType());
|
|
|
+ HttpResponseEntity responseEntity = sendPostMsg(data_augmentation_stop_url, transmissionObject);
|
|
|
if (ObjectUtil.isNotNull(responseEntity) && responseEntity.getStatus() == 200) {
|
|
|
dataAugmentation.setStatus(BizConstant.VideoStatus.INTERRUPTED);
|
|
|
updateById(dataAugmentation);
|