Skip to content

Commit

Permalink
Change the address given to the model to the external network address.
Browse files Browse the repository at this point in the history
Signed-off-by: fanyinbo <1553199396@qq.com>
  • Loading branch information
fanyinbo committed May 20, 2024
1 parent f34b6b4 commit 87adc1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public static ImageDetectionReqDTO convert(ModelMessageBO message) {
var fileNodeBO = fileNodes.get(0);
String url;
if (fileNodeBO.getType().equals(FILE)) {
url = fileNodeBO.getFile().getInternalUrl();
url = fileNodeBO.getFile().getUrl();
} else {
url = fileNodeBO.getFiles().get(0).getFile().getInternalUrl();
url = fileNodeBO.getFiles().get(0).getFile().getUrl();
}
if (StrUtil.isEmpty(url)) {
throw new IllegalArgumentException("file url is empty");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ private static void traverFile(DataInfoBO.FileNodeBO fileNodeBO, DataInfo dataIn
if (prePath.startsWith(CAMERA_IMAGE)) {
if (CollUtil.isEmpty(dataInfo.getImageUrls())) {
List<String> imageUrlList = new ArrayList<>();
imageUrlList.add(fileNodeBO.getFile().getInternalUrl());
imageUrlList.add(fileNodeBO.getFile().getUrl());
dataInfo.setImageUrls(imageUrlList);
} else {
dataInfo.getImageUrls().add(fileNodeBO.getFile().getInternalUrl());
dataInfo.getImageUrls().add(fileNodeBO.getFile().getUrl());
}
}
//pcd
if (prePath.startsWith(LIDAR_POINT_CLOUD)) {
dataInfo.setPointCloudUrl(getFileBO(fileNodeBO.getFile()).getInternalUrl());
dataInfo.setPointCloudUrl(getFileBO(fileNodeBO.getFile()).getUrl());
}
//cameraConfig
if (prePath.startsWith(CAMERA_CONFIG)) {
dataInfo.setCameraConfigUrl(fileNodeBO.getFile().getInternalUrl());
dataInfo.setCameraConfigUrl(fileNodeBO.getFile().getUrl());
}
}
if (DIRECTORY.equals(fileNodeBO.getType()) && CollUtil.isNotEmpty(fileNodeBO.getFiles())) {
Expand Down

0 comments on commit 87adc1d

Please sign in to comment.