|
@@ -222,7 +222,7 @@ public class AlgorithmSubtaskServiceImpl extends BaseServiceImpl<AlgorithmSubtas
|
|
otherParams.put("modelPath", model.getModelAddress());
|
|
otherParams.put("modelPath", model.getModelAddress());
|
|
}
|
|
}
|
|
for (AlgorithmConfigParamDto algorithmConfigParamDto : paramDtoList) {
|
|
for (AlgorithmConfigParamDto algorithmConfigParamDto : paramDtoList) {
|
|
- otherParams.put(algorithmConfigParamDto.getName(), StringUtils.isNotEmpty(algorithmConfigParamDto.getValue()) ? algorithmConfigParamDto.getValue() : algorithmConfigParamDto.getDefaultValue())
|
|
|
|
|
|
+ otherParams.put(algorithmConfigParamDto.getName(), StringUtils.isNotEmpty(algorithmConfigParamDto.getValue()) ? algorithmConfigParamDto.getValue() : algorithmConfigParamDto.getDefaultValue());
|
|
}
|
|
}
|
|
algorithmRequestDto.setOtherParams(otherParams);
|
|
algorithmRequestDto.setOtherParams(otherParams);
|
|
}
|
|
}
|
|
@@ -277,7 +277,7 @@ public class AlgorithmSubtaskServiceImpl extends BaseServiceImpl<AlgorithmSubtas
|
|
List<AlgorithmConfigParamDto> paramDtoList = gson.fromJson(parameters, listType);
|
|
List<AlgorithmConfigParamDto> paramDtoList = gson.fromJson(parameters, listType);
|
|
Map<String, String> otherParams = new HashMap<>(paramDtoList.size());
|
|
Map<String, String> otherParams = new HashMap<>(paramDtoList.size());
|
|
for (AlgorithmConfigParamDto algorithmConfigParamDto : paramDtoList) {
|
|
for (AlgorithmConfigParamDto algorithmConfigParamDto : paramDtoList) {
|
|
- otherParams.put(algorithmConfigParamDto.getName(), StringUtils.isNotEmpty(algorithmConfigParamDto.getValue()) ? algorithmConfigParamDto.getValue() : algorithmConfigParamDto.getDefaultValue())
|
|
|
|
|
|
+ otherParams.put(algorithmConfigParamDto.getName(), StringUtils.isNotEmpty(algorithmConfigParamDto.getValue()) ? algorithmConfigParamDto.getValue() : algorithmConfigParamDto.getDefaultValue());
|
|
}
|
|
}
|
|
algorithmRequestDto.setOtherParams(otherParams);
|
|
algorithmRequestDto.setOtherParams(otherParams);
|
|
}
|
|
}
|