Skip to content

Update RT-DETR confidence threshold dynamically#65

Open
krishna-esrlabs wants to merge 1 commit into
NVIDIA-ISAAC-ROS:mainfrom
krishna-esrlabs:fix/rtdetr-dynamic-confidence-threshold
Open

Update RT-DETR confidence threshold dynamically#65
krishna-esrlabs wants to merge 1 commit into
NVIDIA-ISAAC-ROS:mainfrom
krishna-esrlabs:fix/rtdetr-dynamic-confidence-threshold

Conversation

@krishna-esrlabs

Copy link
Copy Markdown

@jaiveersinghNV @kajananchinniahNV

Description

This PR updates the RT-DETR decoder so runtime changes to the confidence_threshold parameter are applied without restarting the node.

Previously, confidence_threshold was declared and copied into the confidence_threshold_ member variable during node construction. As a result, running:

ros2 param set /rtdetr_decoder confidence_threshold 0.75

updated the ROS parameter value, but the decoder continued using the original startup value inside InputCallback().

This change adds a parameter callback that updates confidence_threshold_ when the parameter is changed.

Testing

Built the package, verified the parameter can be changed at runtime and confirmed that detections update without restarting the node.

results on the examples with the low threshold ros2 param set /rtdetr_decoder confidence_threshold 0.1

image

Signed-off-by: Krishna Krothapalli <krishna.krothapalli@accenture.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant