@@ -36,10 +36,10 @@ namespace trt_mtr
36
36
/* *
37
37
* @brief A configuration of MTR.
38
38
*/
39
- struct MtrConfig
39
+ struct MTRConfig
40
40
{
41
41
/* *
42
- * @brief Construct a new Mtr Config object
42
+ * @brief Construct a new instance.
43
43
*
44
44
* @param target_labels An array of target label names.
45
45
* @param num_mode The number of modes.
@@ -49,7 +49,7 @@ struct MtrConfig
49
49
* @param intention_point_filepath The path to intention points file.
50
50
* @param num_intention_point_cluster The number of clusters for intension points.
51
51
*/
52
- MtrConfig (
52
+ MTRConfig (
53
53
const std::vector<std::string> & target_labels = {" VEHICLE" , " PEDESTRIAN" , " CYCLIST" },
54
54
const size_t num_past = 10 , const size_t num_mode = 6 , const size_t num_future = 80 ,
55
55
const size_t max_num_polyline = 768 , const size_t max_num_point = 20 ,
@@ -81,7 +81,7 @@ struct MtrConfig
81
81
std::array<float , 2 > offset_xy;
82
82
std::string intention_point_filepath;
83
83
size_t num_intention_point_cluster;
84
- };
84
+ }; // struct MTRConfig
85
85
86
86
/* *
87
87
* @brief A class to inference with MTR.
@@ -101,7 +101,7 @@ class TrtMTR
101
101
*/
102
102
TrtMTR (
103
103
const std::string & model_path, const std::string & precision,
104
- const MtrConfig & config = MtrConfig (), const BatchConfig & batch_config = {1 , 1 , 1 },
104
+ const MTRConfig & config = MTRConfig (), const BatchConfig & batch_config = {1 , 1 , 1 },
105
105
const size_t max_workspace_size = (1ULL << 30 ),
106
106
const BuildConfig & build_config = BuildConfig());
107
107
@@ -122,7 +122,7 @@ class TrtMTR
122
122
*
123
123
* @return const MtrConfig& The model configuration which can not be updated.
124
124
*/
125
- const MtrConfig & config () const { return config_; }
125
+ const MTRConfig & config () const { return config_; }
126
126
127
127
private:
128
128
/* *
@@ -152,7 +152,7 @@ class TrtMTR
152
152
bool postProcess (AgentData & agent_data, std::vector<PredictedTrajectory> & trajectories);
153
153
154
154
// model parameters
155
- MtrConfig config_;
155
+ MTRConfig config_;
156
156
157
157
std::unique_ptr<MTRBuilder> builder_;
158
158
cudaStream_t stream_{nullptr };
0 commit comments