From f6b80206ddfb61daea803cd204aaf7de97241250 Mon Sep 17 00:00:00 2001 From: lhahah <87695978+AV-Security@users.noreply.github.com> Date: Wed, 20 Mar 2024 14:54:22 +0800 Subject: [PATCH] Update jointly_prediction_planning_evaluator.cc --- .../evaluator/vehicle/jointly_prediction_planning_evaluator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prediction/evaluator/vehicle/jointly_prediction_planning_evaluator.cc b/modules/prediction/evaluator/vehicle/jointly_prediction_planning_evaluator.cc index f124b5b99fe..d035d0a7f94 100644 --- a/modules/prediction/evaluator/vehicle/jointly_prediction_planning_evaluator.cc +++ b/modules/prediction/evaluator/vehicle/jointly_prediction_planning_evaluator.cc @@ -325,7 +325,7 @@ bool JointlyPredictionPlanningEvaluator::Evaluate( torch::Tensor adc_trajectory = torch::zeros({1, 30, 6}); const auto& adc_traj = adc_trajectory_container->adc_trajectory(); size_t adc_traj_points_num = adc_traj.trajectory_point().size(); - if (adc_traj_points_num < 1) { + if (adc_traj_points_num < 2) { AERROR << "adc_traj points num is " << adc_traj_points_num << " adc traj points are not enough"; return false;