Launch the Object Detection Node with Custom Parameters
Override the default parameters when launching the object detection node to use a different model file or adjust inference settings.
The default launch file loads a pre‑trained model and uses a confidence threshold of 0.5. If you have trained your own model or wish to change the confidence threshold, input dimensions or log directory, you can override the parameters at launch time. The example below shows how to specify a custom HEF model, set a higher confidence threshold and choose a custom log directory. Adjust these values to match your own files and preferences.
bash
ros2 launch obj_detect object_detector.launch.py \
model_path:=/path/to/your/yolov11n_2cls_finetune.hef \
confidence_threshold:=0.6 \
input_width:=640 \
input_height:=640 \
hailort_log_path:=/path/to/logs