forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/start_planner_post_process
Signed-off-by: kyoichi-sugahara <[email protected]>
- Loading branch information
Showing
10 changed files
with
192 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
data/ | ||
60 changes: 60 additions & 0 deletions
60
...on/lidar_centerpoint_tvm/data/models/centerpoint_backbone/inference_engine_tvm_config.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ |
59 changes: 59 additions & 0 deletions
59
...rpoint_tvm/data/models/centerpoint_backbone/preprocessing_inference_engine_tvm_config.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ |
55 changes: 55 additions & 0 deletions
55
...ion/lidar_centerpoint_tvm/data/models/centerpoint_encoder/inference_engine_tvm_config.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters