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

build(lidar_centerpoint_tvm): remove artifacts download #5367

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
c90b228
add include tier4_autoware_utils and dependency
lexavtanke Sep 6, 2023
e77245c
remove downloading logic from Cmake, update documentation
lexavtanke Sep 7, 2023
59c590f
build(tvm_utility): remove downloading logic from Cmake, update docum…
lexavtanke Sep 7, 2023
deab5e7
Merge remote-tracking branch 'lexavtanke/remove_download_tvm_utility'…
lexavtanke Sep 7, 2023
d4e0064
style(pre-commit): autofix
pre-commit-ci[bot] Sep 7, 2023
a098b48
build(tvm_utility): fix lint_cmake error
lexavtanke Sep 8, 2023
dac7a20
build(tvm_utility): format warning message
lexavtanke Sep 8, 2023
789ba72
build(tvm_utility): add logic to work with autoware_data folder, add …
lexavtanke Sep 13, 2023
0fa9061
style(pre-commit): autofix
pre-commit-ci[bot] Sep 13, 2023
4060e78
Merge branch 'autowarefoundation:main' into remove_download_tvm_utility
lexavtanke Sep 14, 2023
726e3a2
style(pre-commit): autofix
pre-commit-ci[bot] Sep 14, 2023
f9d23be
Merge branch 'main' into remove_download_tvm_utility
lexavtanke Sep 27, 2023
a602a34
build(tvm_utility): refactor, update InferenceEngineTVM constructor
lexavtanke Sep 28, 2023
e2ad796
style(pre-commit): autofix
pre-commit-ci[bot] Sep 28, 2023
1c46e02
Merge branch 'autowarefoundation:main' into remove_download_tvm_utility
lexavtanke Oct 5, 2023
b218bbe
build(tvm_utility): add lightweight model and test with it
lexavtanke Oct 5, 2023
6eea3e9
build(tvm_utility): make building yolo_v2_tiny disable by default
lexavtanke Oct 5, 2023
dd09064
build(tvm_utility): remove test artifact for yolo_v2_tiny
lexavtanke Oct 5, 2023
3cf6108
build(tvm_utility): update docs
lexavtanke Oct 6, 2023
e82b412
build(tvm_utility): update docs
lexavtanke Oct 6, 2023
5ed5724
style(pre-commit): autofix
pre-commit-ci[bot] Oct 6, 2023
7ba6056
build(tvm_utility): update namespace in abs_model test
lexavtanke Oct 6, 2023
c45ab80
build(tvm_utility): rewrite yolo_v2_tiny as example
lexavtanke Oct 16, 2023
c91c0e2
build(tvm_utility): clean comments in yolo_v2_tiny example main.cpp
lexavtanke Oct 16, 2023
f145dbc
build(tvm_utility): add launch file for yolo_v2_tiny example
lexavtanke Oct 17, 2023
6d86664
build(tvm_utility): update yolo_v2_tiny example readme
lexavtanke Oct 17, 2023
24aee4b
style(pre-commit): autofix
pre-commit-ci[bot] Oct 17, 2023
3484369
build(tvm_utility): add model for arm based systems, need to be teste…
lexavtanke Oct 17, 2023
165255a
style(pre-commit): autofix
pre-commit-ci[bot] Oct 17, 2023
0c08dc3
Merge branch 'autowarefoundation:main' into remove_download_tvm_utility
lexavtanke Oct 17, 2023
603c163
style(pre-commit): autofix
pre-commit-ci[bot] Oct 17, 2023
dd8e24a
build(tvm_utility): update config header for arm
lexavtanke Oct 17, 2023
971508a
style(pre-commit): autofix
pre-commit-ci[bot] Oct 17, 2023
d6992b1
build(tvm_utility): remove debug output
lexavtanke Oct 17, 2023
8f2f263
Merge branch 'main' into remove_download_tvm_utility
lexavtanke Oct 19, 2023
dc7d3cd
Merge branch 'remove_download_tvm_utility' into build-lidar-centerpoi…
lexavtanke Oct 19, 2023
c70554f
build(lidar_centerpoint_tvm): wip, add data_path parameter
lexavtanke Oct 19, 2023
107c939
build(tvm_utility): add find_package conditional section
lexavtanke Oct 19, 2023
e360caf
build(tvm_utility): fix lint_cmake errors
lexavtanke Oct 19, 2023
99caa44
build(tvm_utility): remove coping model files during build
lexavtanke Oct 19, 2023
eb3b8bb
build(tvm_utility): update readme with new data folder structure
lexavtanke Oct 19, 2023
63e932a
build(tvm_utility): fix spell check warnings
lexavtanke Oct 19, 2023
1b22105
style(pre-commit): autofix
pre-commit-ci[bot] Oct 19, 2023
684adfb
Merge branch 'remove_download_tvm_utility' into build-lidar-centerpoi…
lexavtanke Oct 19, 2023
4b8471d
build(tvm_utility): add no model files guard to get_neural_network
lexavtanke Oct 20, 2023
3514fd9
style(pre-commit): autofix
pre-commit-ci[bot] Oct 20, 2023
ac5695e
Merge branch 'remove_download_tvm_utility' into build-lidar-centerpoi…
lexavtanke Oct 20, 2023
d86224d
build(lidar_ceterpoint_tvm): add parameter data_path, model config files
lexavtanke Oct 20, 2023
3be85b7
style(pre-commit): autofix
pre-commit-ci[bot] Oct 20, 2023
c50d1df
build(tvm_utility): set back default paths in config headers
lexavtanke Oct 20, 2023
7cc15d7
Merge branch 'remove_download_tvm_utility' into build-lidar-centerpoi…
lexavtanke Oct 20, 2023
168419a
build(lidar_centerpoint_tvm): set back default paths in config headers
lexavtanke Oct 20, 2023
f5e2e7e
style(pre-commit): autofix
pre-commit-ci[bot] Oct 20, 2023
770c400
build(tvm_utility): add param file, update launch file
lexavtanke Oct 23, 2023
0dd4431
build(tvm_utility): add schema file, update node name
lexavtanke Oct 23, 2023
9fced41
style(pre-commit): autofix
pre-commit-ci[bot] Oct 23, 2023
a8b65b2
build(tvm_utility): fix json-schema-check
lexavtanke Oct 23, 2023
742903f
Merge remote-tracking branch 'lexavtanke/remove_download_tvm_utility'…
lexavtanke Oct 23, 2023
7999377
build(tvm_utility): fix json-schema-check
lexavtanke Oct 23, 2023
ab86d1f
style(pre-commit): autofix
pre-commit-ci[bot] Oct 23, 2023
3300af7
build(tvm_utility): add parameter table to example readme
lexavtanke Oct 26, 2023
81f9aed
build(tvm_utility): fix typo-error in description of schema.json
lexavtanke Oct 26, 2023
70cabe2
style(pre-commit): autofix
pre-commit-ci[bot] Oct 26, 2023
0d81afb
Merge branch 'main' into remove_download_tvm_utility
lexavtanke Oct 26, 2023
d080050
buiild(tvm_utility): fix spell-check warning and typo
lexavtanke Oct 26, 2023
2f190c6
feat(spell-check): add dltype and tvmgen to local dict
lexavtanke Oct 26, 2023
0e0812e
Merge branch 'autowarefoundation:main' into build-lidar-centerpoint-t…
lexavtanke Oct 26, 2023
1f19f19
Merge branch 'remove_download_tvm_utility' into build-lidar-centerpoi…
lexavtanke Oct 26, 2023
4f7d1fe
Merge branch 'feat-spell-check-add-tvmg-and-dltype' into remove_downl…
lexavtanke Oct 26, 2023
3c97359
style(pre-commit): autofix
pre-commit-ci[bot] Oct 26, 2023
fd5ff48
Merge branch 'remove_download_tvm_utility' into build-lidar-centerpoi…
lexavtanke Oct 26, 2023
e446644
Merge branch 'remove_download_tvm_utility' into build-lidar-centerpoi…
lexavtanke Oct 26, 2023
a8722ed
build(lidar_centerpoint_tvm): remove wrong added files
lexavtanke Oct 26, 2023
17d94c8
build(lidar_centerpoint_tvm): fix cpplint errors
lexavtanke Oct 26, 2023
9d98374
style(pre-commit): autofix
pre-commit-ci[bot] Oct 26, 2023
afc9523
build(lidar_centerpoint_tvm): fix cpplint errors
lexavtanke Oct 26, 2023
eef4ed2
style(pre-commit): autofix
pre-commit-ci[bot] Oct 26, 2023
6277f14
build(lidar_centerpoint_tvm): fix cpplint errors
lexavtanke Oct 26, 2023
1afa0fa
style(pre-commit): autofix
pre-commit-ci[bot] Oct 26, 2023
67d16ae
build(lidar_centerpoint_tvm): fix cpplint errors
lexavtanke Oct 26, 2023
4a5e92e
style(pre-commit): autofix
pre-commit-ci[bot] Oct 26, 2023
01b1214
build(lidar_centerpoint_tvm): fix cpplint errors
lexavtanke Oct 26, 2023
0b2b3a9
style(pre-commit): autofix
pre-commit-ci[bot] Oct 26, 2023
797a028
build(lidar_centerpoint_tvm): suppress cpplint
lexavtanke Oct 27, 2023
a352d3a
Merge branch 'main' into build-lidar-centerpoint-tvm-remove-artifacts…
lexavtanke Nov 1, 2023
1a0aced
build(lidar_centerpoint_tvm): make TVMScatterIR param order consistent
lexavtanke Nov 10, 2023
1e2ac27
Merge branch 'main' into build-lidar-centerpoint-tvm-remove-artifacts…
lexavtanke Nov 10, 2023
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
1 change: 0 additions & 1 deletion perception/lidar_centerpoint_tvm/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
data/
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Copyright 2021 Arm Limited and Contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tvm_utility/pipeline.hpp"

#ifndef PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT
#define PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT

namespace model_zoo
{
namespace perception
{
namespace lidar_obstacle_detection
{
namespace centerpoint_backbone
{
namespace onnx_centerpoint_backbone
{

static const tvm_utility::pipeline::InferenceEngineTVMConfig config{
{3, 0, 0}, // modelzoo_version

"centerpoint_backbone", // network_name
"llvm", // network_backend

"./deploy_lib.so", // network_module_path
"./deploy_graph.json", // network_graph_path
"./deploy_param.params", // network_params_path

kDLCPU, // tvm_device_type
0, // tvm_device_id

{{"spatial_features", kDLFloat, 32, 1, {1, 32, 560, 560}}}, // network_inputs

{{"heatmap", kDLFloat, 32, 1, {1, 3, 560, 560}},
{"reg", kDLFloat, 32, 1, {1, 2, 560, 560}},
{"height", kDLFloat, 32, 1, {1, 1, 560, 560}},
{"dim", kDLFloat, 32, 1, {1, 3, 560, 560}},
{"rot", kDLFloat, 32, 1, {1, 2, 560, 560}},
{"vel", kDLFloat, 32, 1, {1, 2, 560, 560}}} // network_outputs
};

} // namespace onnx_centerpoint_backbone
} // namespace centerpoint_backbone
} // namespace lidar_obstacle_detection
} // namespace perception
} // namespace model_zoo
// NOLINTNEXTLINE
#endif // PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__INFERENCE_ENGINE_TVM_CONFIG_HPP_
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Copyright 2021 Arm Limited and Contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tvm_utility/pipeline.hpp"

#ifndef PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__PREPROCESSING_INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT
#define PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__PREPROCESSING_INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT

namespace model_zoo
{
namespace perception
{
namespace lidar_obstacle_detection
{
namespace centerpoint_backbone
{
namespace onnx_centerpoint_backbone
{
namespace preprocessing
{

static const tvm_utility::pipeline::InferenceEngineTVMConfig config{
{3, 0, 0}, // modelzoo_version

"centerpoint_backbone", // network_name
"llvm", // network_backend

"./preprocess.so", // network_module_path
"./", // network_graph_path
"./", // network_params_path

kDLCPU, // tvm_device_type
0, // tvm_device_id

{{"pillar_features", kDLFloat, 32, 1, {40000, 1, 32}},
{"coords", kDLInt, 32, 1, {40000, 3}}}, // network_inputs

{{"spatial_features", kDLFloat, 32, 1, {1, 32, 560, 560}}} // network_outputs
};

} // namespace preprocessing
} // namespace onnx_centerpoint_backbone
} // namespace centerpoint_backbone
} // namespace lidar_obstacle_detection
} // namespace perception
} // namespace model_zoo
// NOLINTNEXTLINE
#endif // PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__PREPROCESSING_INFERENCE_ENGINE_TVM_CONFIG_HPP_
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright 2021 Arm Limited and Contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tvm_utility/pipeline.hpp"

#ifndef PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_ENCODER__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT
#define PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_ENCODER__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT

namespace model_zoo
{
namespace perception
{
namespace lidar_obstacle_detection
{
namespace centerpoint_encoder
{
namespace onnx_centerpoint_encoder
{

static const tvm_utility::pipeline::InferenceEngineTVMConfig config{
{3, 0, 0}, // modelzoo_version

"centerpoint_encoder", // network_name
"llvm", // network_backend

"./deploy_lib.so", // network_module_path
"./deploy_graph.json", // network_graph_path
"./deploy_param.params", // network_params_path

kDLCPU, // tvm_device_type
0, // tvm_device_id

{{"input_features", kDLFloat, 32, 1, {40000, 32, 9}}}, // network_inputs

{{"pillar_features", kDLFloat, 32, 1, {40000, 1, 32}}} // network_outputs
};

} // namespace onnx_centerpoint_encoder
} // namespace centerpoint_encoder
} // namespace lidar_obstacle_detection
} // namespace perception
} // namespace model_zoo
// NOLINTNEXTLINE
#endif // PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_ENCODER__INFERENCE_ENGINE_TVM_CONFIG_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class LIDAR_CENTERPOINT_TVM_LOCAL TVMScatterIE : public tvm_utility::pipeline::I
public:
explicit TVMScatterIE(
tvm_utility::pipeline::InferenceEngineTVMConfig config, const std::string & pkg_name,
const std::string & function_name);
const std::string & data_path, const std::string & function_name);
TVMArrayContainerVector schedule(const TVMArrayContainerVector & input);
void set_coords(TVMArrayContainer coords) { coords_ = coords; }

Expand Down Expand Up @@ -132,7 +132,8 @@ class LIDAR_CENTERPOINT_TVM_PUBLIC CenterPointTVM
/// \param[in] dense_param The densification parameter used to constructing vg_ptr.
/// \param[in] config The CenterPoint model configuration.
explicit CenterPointTVM(
const DensificationParam & densification_param, const CenterPointConfig & config);
const DensificationParam & densification_param, const CenterPointConfig & config,
const std::string & data_path);

~CenterPointTVM();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<arg name="score_threshold" default="0.35"/>
<arg name="yaw_norm_threshold" default="0.0"/>
<arg name="has_twist" default="false"/>
<arg name="data_path" default="$(env HOME)/autoware_data"/>

<node pkg="lidar_centerpoint_tvm" exec="lidar_centerpoint_tvm_node" name="lidar_centerpoint_tvm" output="screen">
<remap from="~/input/pointcloud" to="$(var input/pointcloud)"/>
Expand All @@ -20,5 +21,6 @@
<param name="densification_num_past_frames" value="1"/>
<param name="has_twist" value="$(var has_twist)"/>
<param from="$(var model_param_path)"/>
<param name="data_path" value="$(var data_path)"/>
</node>
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<arg name="has_twist" default="false"/>
<arg name="pcd_path" default="test.pcd"/>
<arg name="detections_path" default="test.ply"/>
<arg name="data_path" default="$(env HOME)/autoware_data"/>

<node pkg="lidar_centerpoint_tvm" exec="single_inference_lidar_centerpoint_tvm_node" name="lidar_centerpoint_tvm" output="screen">
<remap from="~/input/pointcloud" to="$(var input/pointcloud)"/>
Expand All @@ -22,6 +23,7 @@

<param name="pcd_path" value="$(var pcd_path)"/>
<param name="detections_path" value="$(var detections_path)"/>
<param name="data_path" value="$(var data_path)"/>
</node>

<node pkg="lidar_centerpoint_tvm" exec="lidar_centerpoint_visualizer.py" name="lidar_centerpoint_visualizer" output="screen">
Expand Down
14 changes: 7 additions & 7 deletions perception/lidar_centerpoint_tvm/lib/centerpoint_tvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@

TVMScatterIE::TVMScatterIE(
tvm_utility::pipeline::InferenceEngineTVMConfig config, const std::string & pkg_name,
const std::string & function_name)
const std::string & data_path, const std::string & function_name)

Check warning on line 46 in perception/lidar_centerpoint_tvm/lib/centerpoint_tvm.cpp

View check run for this annotation

Codecov / codecov/patch

perception/lidar_centerpoint_tvm/lib/centerpoint_tvm.cpp#L46

Added line #L46 was not covered by tests
: config_(config)
{
std::string network_prefix =
ament_index_cpp::get_package_share_directory(pkg_name) + "/models/" + config.network_name + "/";
std::string network_prefix = data_path + "/" + pkg_name + "/models/" + config.network_name + "/";

Check warning on line 49 in perception/lidar_centerpoint_tvm/lib/centerpoint_tvm.cpp

View check run for this annotation

Codecov / codecov/patch

perception/lidar_centerpoint_tvm/lib/centerpoint_tvm.cpp#L49

Added line #L49 was not covered by tests
std::string network_module_path = network_prefix + config.network_module_path;

std::ifstream module(network_module_path);
Expand Down Expand Up @@ -159,14 +158,15 @@
}

CenterPointTVM::CenterPointTVM(
const DensificationParam & densification_param, const CenterPointConfig & config)
const DensificationParam & densification_param, const CenterPointConfig & config,
const std::string & data_path)

Check warning on line 162 in perception/lidar_centerpoint_tvm/lib/centerpoint_tvm.cpp

View check run for this annotation

Codecov / codecov/patch

perception/lidar_centerpoint_tvm/lib/centerpoint_tvm.cpp#L162

Added line #L162 was not covered by tests
: config_ve(config_en),
config_bnh(config_bk),
VE_PreP(std::make_shared<VE_PrePT>(config_en, config)),
VE_IE(std::make_shared<IET>(config_en, "lidar_centerpoint_tvm")),
BNH_IE(std::make_shared<IET>(config_bk, "lidar_centerpoint_tvm")),
VE_IE(std::make_shared<IET>(config_en, "lidar_centerpoint_tvm", data_path)),
BNH_IE(std::make_shared<IET>(config_bk, "lidar_centerpoint_tvm", data_path)),
BNH_PostP(std::make_shared<BNH_PostPT>(config_bk, config)),
scatter_ie(std::make_shared<TSE>(config_scatter, "lidar_centerpoint_tvm", "scatter")),
scatter_ie(std::make_shared<TSE>(config_scatter, "lidar_centerpoint_tvm", data_path, "scatter")),
TSP_pipeline(std::make_shared<TSP>(VE_PreP, VE_IE, scatter_ie, BNH_IE, BNH_PostP)),
config_(config)
{
Expand Down
3 changes: 2 additions & 1 deletion perception/lidar_centerpoint_tvm/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
static_cast<std::size_t>(this->declare_parameter<std::int64_t>("downsample_factor"));
const std::size_t encoder_in_feature_size =
static_cast<std::size_t>(this->declare_parameter<std::int64_t>("encoder_in_feature_size"));
const auto data_path = this->declare_parameter<std::string>("data_path");

Check warning on line 68 in perception/lidar_centerpoint_tvm/src/node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/lidar_centerpoint_tvm/src/node.cpp#L68

Added line #L68 was not covered by tests

DensificationParam densification_param(
densification_world_frame_id, densification_num_past_frames);
Expand All @@ -83,7 +84,7 @@
class_names_.size(), point_feature_size, max_voxel_size, point_cloud_range, voxel_size,
downsample_factor, encoder_in_feature_size, score_threshold, circle_nms_dist_threshold,
yaw_norm_threshold);
detector_ptr_ = std::make_unique<CenterPointTVM>(densification_param, config);
detector_ptr_ = std::make_unique<CenterPointTVM>(densification_param, config, data_path);

Check warning on line 87 in perception/lidar_centerpoint_tvm/src/node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/lidar_centerpoint_tvm/src/node.cpp#L87

Added line #L87 was not covered by tests

pointcloud_sub_ = this->create_subscription<sensor_msgs::msg::PointCloud2>(
"~/input/pointcloud", rclcpp::SensorDataQoS{}.keep_last(1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
static_cast<std::size_t>(this->declare_parameter<std::int64_t>("encoder_in_feature_size"));
const auto pcd_path = this->declare_parameter<std::string>("pcd_path");
const auto detections_path = this->declare_parameter<std::string>("detections_path");

const auto data_path = this->declare_parameter<std::string>("data_path");

Check warning on line 73 in perception/lidar_centerpoint_tvm/src/single_inference_node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/lidar_centerpoint_tvm/src/single_inference_node.cpp#L73

Added line #L73 was not covered by tests
DensificationParam densification_param(
densification_world_frame_id, densification_num_past_frames);

Expand All @@ -88,7 +88,7 @@
class_names_.size(), point_feature_size, max_voxel_size, point_cloud_range, voxel_size,
downsample_factor, encoder_in_feature_size, score_threshold, circle_nms_dist_threshold,
yaw_norm_threshold);
detector_ptr_ = std::make_unique<CenterPointTVM>(densification_param, config);
detector_ptr_ = std::make_unique<CenterPointTVM>(densification_param, config, data_path);

Check warning on line 91 in perception/lidar_centerpoint_tvm/src/single_inference_node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/lidar_centerpoint_tvm/src/single_inference_node.cpp#L91

Added line #L91 was not covered by tests

detect(pcd_path, detections_path);
exit(0);
Expand Down
Loading