|
|
|
@@ -12,6 +12,7 @@ import com.ruoyi.platform.utils.HttpUtils; |
|
|
|
import com.ruoyi.platform.utils.JsonUtils; |
|
|
|
import com.ruoyi.platform.vo.AutoMlParamVo; |
|
|
|
import com.ruoyi.platform.vo.TextClassificationParamVo; |
|
|
|
import com.ruoyi.platform.vo.VideoClassificationParamVo; |
|
|
|
import com.ruoyi.system.api.constant.Constant; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
@@ -37,6 +38,8 @@ public class MachineLearnServiceImpl implements MachineLearnService { |
|
|
|
String convertAutoML; |
|
|
|
@Value("${argo.convertTextClassification}") |
|
|
|
String convertTextClassification; |
|
|
|
@Value("${argo.convertVideoClassification}") |
|
|
|
String convertVideoClassification; |
|
|
|
@Value("${argo.workflowRun}") |
|
|
|
private String argoWorkflowRun; |
|
|
|
@Value("${minio.endpointIp}") |
|
|
|
@@ -143,7 +146,12 @@ public class MachineLearnServiceImpl implements MachineLearnService { |
|
|
|
break; |
|
|
|
} |
|
|
|
case Constant.ML_VideoClassification: { |
|
|
|
// todo |
|
|
|
VideoClassificationParamVo paramVo = JsonUtils.jsonToObject(machineLearn.getParam(), VideoClassificationParamVo.class); |
|
|
|
computingResourceId = paramVo.getComputingResourceId(); |
|
|
|
if (resourceOccupyService.haveResource(computingResourceId, 1)) { |
|
|
|
param = JsonUtils.getConvertParam(paramVo); |
|
|
|
convertRes = HttpUtils.sendPost(argoUrl + convertVideoClassification, param); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -205,6 +213,7 @@ public class MachineLearnServiceImpl implements MachineLearnService { |
|
|
|
break; |
|
|
|
} |
|
|
|
case Constant.ML_VideoClassification: { |
|
|
|
machineLearnIns.setResultPath(outputPath); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|