确定是TrackGallery的问题,fix

主要是两个问题: 1. trackgallery只有在有确定sid是才更新新的feature;2. sid应该永远按身份保留,不是顺序顺延
This commit is contained in:
hjy
2026-04-19 23:56:36 +08:00
parent 560a60068f
commit e1c2e8f970
5 changed files with 704 additions and 104 deletions
+23 -2
View File
@@ -77,7 +77,7 @@ register_keys:
# sync_camera_compressed = 1: sync_camera_topic 应该是 sensor_msgs/CompressedImage,例如 /odin1/image/compressed
# real run: 0, 0 0 ; dataset: 1 1 1 ; special: 0 1 1
sync_camera_topic: "/odin1/image"
sync_camera_compressed: 0 # sync_camera_topic would be default added /compressed
sync_camera_compressed: 1 # sync_camera_topic would be default added /compressed
# 无论输入是 raw 还是 compressed,都额外发布 {sync_topic_prefix}/image/compressed
always_send_sync_compressed: 1
# 控制是否发布 {sync_topic_prefix}/cloud_slam
@@ -97,6 +97,20 @@ register_keys:
# draw target observation result on overlay image and print debug info
# 0: off; 1: on
debug: 1
# Center-cropped detection ROI: the primary YOLO pass sees only this
# square region (pixels), improving effective resolution on central
# subjects at the cost of ignoring edge strips. Set 0 to disable.
# Detection ROI applied before the primary YOLO pass. Horizontal placement
# is always centered; y_offset is pixels from image top (set -1 to auto-
# center vertically). For a 1600x1296 image with ROI 1440x1080, centered
# vertically would be y_offset=108 ((1296-1080)/2); y_offset=54 biases the
# ROI slightly upward so heads/torsos stay inside when the camera tilts down.
target_detection_roi_enabled: 1
target_detection_roi_width_px: 1440
target_detection_roi_height_px: 1080
target_detection_roi_y_offset_px: 54
target_detection_roi_size_px: 1080
target_yolo_engine: "/home/hjy/HJY/Codes/AMP_ws/TargetPrediction/deploy/model/yolo26m-pose_960.trt"
# lazy ReID only runs after the current ByteTrack target is lost
# first valid frame still bootstraps by choosing the target closest to image center
# if a frame misses all detections, retry YOLO once inside a local ROI around the previous target bbox
@@ -111,7 +125,7 @@ register_keys:
target_reid_max_crop_aspect_ratio: 0.90
target_reid_feature_update_interval: 5
target_reid_lost_timeout_frames: 150
target_reid_gallery_size: 10
target_reid_gallery_size: 8
target_reid_input_height: 256
target_reid_input_width: 128
target_reid_feature_dim: 512
@@ -126,6 +140,13 @@ register_keys:
target_reid_3d_fallback_enabled: 1
target_reid_3d_fallback_base_m: 0.75
target_reid_3d_fallback_per_frame_m: 0.05
# A ByteTrack raw_id must persist for N consecutive frames (failing both
# fast-path and ReID rebind) before a fresh stable_id is allocated for it.
# Filters out short-lived ByteTrack ID flicker. Set 1 to disable.
target_reid_confirm_hits_before_allocate: 5
debug_reid: 1
# record rgb, odometry, and slam cloud data as proprietary olx format for further processing in MindCloud(TM) software.
# save path: ws/src/odin_ros_driver/recorddata/{record_start_time}/