Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the address given to the model to the external network address. #252

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading