Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 6, 2024
1 parent 11f1d72 commit 061fa60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion perception/tensorrt_yolox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ Zheng Ge, Songtao Liu, Feng Wang, Zeming Li, Jian Sun, "YOLOX: Exceeding YOLO Se
{{ json_to_markdown("perception/tensorrt_yolox/schema/yolox_s_plus_opt.schema.json") }}
{{ json_to_markdown("perception/tensorrt_yolox/schema/yolox_tiny.schema.json") }}


## Assumptions / Known limits

The label contained in detected 2D bounding boxes (i.e., `out/objects`) will be either one of the followings:
Expand Down
10 changes: 6 additions & 4 deletions perception/tensorrt_yolox/src/tensorrt_yolox_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,22 @@ TrtYoloXNode::TrtYoloXNode(const rclcpp::NodeOptions & node_options)
return this->declare_parameter(name, default_val, param_desc);
};


const std::string model_path = this->declare_parameter<std::string>("model_path");
const std::string label_path = this->declare_parameter<std::string>("label_path");
const std::string precision = this->declare_parameter<std::string>("precision");
const float score_threshold = static_cast<float>(this->declare_parameter<double>("score_threshold"));
const float score_threshold =
static_cast<float>(this->declare_parameter<double>("score_threshold"));
const float nms_threshold = static_cast<float>(this->declare_parameter<double>("nms_threshold"));
const std::string calibration_algorithm = this->declare_parameter<std::string>("calibration_algorithm");
const std::string calibration_algorithm =
this->declare_parameter<std::string>("calibration_algorithm");
const int dla_core_id = static_cast<std::size_t>(this->declare_parameter<int>("dla_core_id"));
const bool quantize_first_layer = this->declare_parameter<bool>("quantize_first_layer");
const bool quantize_last_layer = this->declare_parameter<bool>("quantize_last_layer");
const bool profile_per_layer = this->declare_parameter<bool>("profile_per_layer");
const double clip_value = static_cast<float>(this->declare_parameter<double>("clip_value"));
const bool preprocess_on_gpu = this->declare_parameter<bool>("preprocess_on_gpu");
const std::string calibration_image_list_path = this->declare_parameter<std::string>("calibration_image_list_path");
const std::string calibration_image_list_path =
this->declare_parameter<std::string>("calibration_image_list_path");

if (!readLabelFile(label_path)) {
RCLCPP_ERROR(this->get_logger(), "Could not find label file");
Expand Down

0 comments on commit 061fa60

Please sign in to comment.