Merge pull request 'feat/infer_dev_260107' (#217) from feat/infer_dev_260107 into develop
Reviewed-on: https://kamco.gitea.gs.dabeeo.com/dabeeo/kamco-dabeeo-backoffice/pulls/217
This commit is contained in:
@@ -81,6 +81,16 @@ public class ModelMngService {
|
|||||||
FIleChecker.unzip(addReq.getFileName(), addReq.getFilePath());
|
FIleChecker.unzip(addReq.getFileName(), addReq.getFilePath());
|
||||||
this.getUnzipModelFiles(addReq.getFilePath(), modelUploadResDto);
|
this.getUnzipModelFiles(addReq.getFilePath(), modelUploadResDto);
|
||||||
|
|
||||||
|
if (modelUploadResDto.getCdModelFileName() == null
|
||||||
|
|| modelUploadResDto.getCdModelFileName().isEmpty()
|
||||||
|
|| modelUploadResDto.getCdModelConfigFileName() == null
|
||||||
|
|| modelUploadResDto.getCdModelConfigFileName().isEmpty()
|
||||||
|
|| modelUploadResDto.getClsModelFileName() == null
|
||||||
|
|| modelUploadResDto.getClsModelFileName().isEmpty()) {
|
||||||
|
|
||||||
|
return new ApiResponseDto.ResponseObj(ApiResponseCode.NOT_FOUND, "파일이 존재하지 않습니다");
|
||||||
|
}
|
||||||
|
|
||||||
addReq.setCdModelPath(modelUploadResDto.getCdModelPath());
|
addReq.setCdModelPath(modelUploadResDto.getCdModelPath());
|
||||||
addReq.setCdModelFileName(modelUploadResDto.getCdModelFileName());
|
addReq.setCdModelFileName(modelUploadResDto.getCdModelFileName());
|
||||||
addReq.setCdModelConfigPath(modelUploadResDto.getCdModelConfigPath());
|
addReq.setCdModelConfigPath(modelUploadResDto.getCdModelConfigPath());
|
||||||
@@ -89,7 +99,9 @@ public class ModelMngService {
|
|||||||
addReq.setClsModelFileName(modelUploadResDto.getClsModelFileName());
|
addReq.setClsModelFileName(modelUploadResDto.getClsModelFileName());
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
// throw new RuntimeException(e);
|
||||||
|
|
||||||
|
return new ApiResponseDto.ResponseObj(ApiResponseCode.NOT_FOUND, "파일이 존재하지 않습니다");
|
||||||
}
|
}
|
||||||
|
|
||||||
Long modelUid = modelMngCoreService.insertModel(addReq);
|
Long modelUid = modelMngCoreService.insertModel(addReq);
|
||||||
|
|||||||
@@ -53,6 +53,10 @@ public class MapSheetInferenceJobService {
|
|||||||
@Transactional
|
@Transactional
|
||||||
public void runBatch() {
|
public void runBatch() {
|
||||||
|
|
||||||
|
if ("local".equalsIgnoreCase(profile)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
InferenceBatchSheet batchSheet =
|
InferenceBatchSheet batchSheet =
|
||||||
inferenceResultCoreService.getInferenceResultByStatus(Status.IN_PROGRESS.getId());
|
inferenceResultCoreService.getInferenceResultByStatus(Status.IN_PROGRESS.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user