| Algorithm 1. Overall Pipeline of TrackRefine |
|
Input: Video sequence , front-end instance segmenter , memory bank , thresholds Output: Trajectory set 1 Initialize and 2 for to do 3 Obtain frame-wise detections: |
| 4 Suppress highly overlapped duplicate masks in 5 Refine initial masks by local Fast GrabCut: |
| 6 Extract appearance feature , semantic feature , and shape feature from 7 Fuse semantic and shape cues: |
| 8 Construct multimodal feature: |
| 9 Construct the multimodal feature set: |
| 10 Predict existing trajectory states using Kalman filtering and camera motion compensation 11 Partition trajectories into active, recently unmatched, and lost states 12 Perform progressive three-stage association: |
| 13 for each matched pair do 14 Update the state, box, mask, and identity of using 15 Estimate the observation quality 16 Selectively update short-term memory and long-term prototypes: |
| 17 end for 18 Mark unmatched trajectories as occluded or lost according to missing duration 19 Initialize new tentative trajectories for unmatched detections in 20 Remove expired trajectories from 21 end for 22 |