HoldTrack data, and SAM 3 against SAM 3.1 on DanceTrack
This is the data behind HoldTrack. The paper, the code and the weights are at https://tofboubou.github.io/HoldTrack/
It also has a comparison I ran between SAM 3 and SAM 3.1 Object Multiplex, in the same tracking loop and with the same boxes.
There are no images, no annotations, no weights and no face embeddings here. To run something from the pixels you need your own copy of DanceTrack and of the SAM checkpoints.
What is in the two folders
sam31_multiplex/ is the comparison.
code/has the tracking loop shared by the two models, the two engines, a script that runs one video and a script that reproduces two problems I met when I remove an object.inputs/has the detections given to the loop for each video.runs/has the tracks of each video for the four variants, with what happened at each frame (births, removals), the timing and the GPU memory.results/has the scores of each annotated video and the paired differences.archives/has the four zip files I sent to the DanceTrack test server.GEL.jsonhas the settings I froze before I read the validation videos. Gel is French for freeze.
holdtrack_replay_data/ has the stored outputs of every model of HoldTrack on the 35 test videos and on the 57 annotated videos. Detector boxes, SAM 3 passes, poses, meshes, identity steps and final tracks. The layout is the one of docs/REPRODUCE.md in the HoldTrack repository and the scripts of research/replays/ read it.
holdtrack_replay_data/annotated57/identity_errors/ has one table for each of the five SAM 3 passes. Each row is a box that carries the wrong person, with the frame, the true person and the person it went to. Person numbers are local to the video. A person of -2 means the object matched nobody one to one.
The comparison in short
S3 is SAM 3 and M16 is SAM 3.1 with buckets of 16 objects. The letter n is the native memory write. The letter x is the non-overlapping constraint applied to all the people before the memory is written.
HOTA / DetA / AssA in percent.
| 57 annotated videos | test set | |
|---|---|---|
| S3n | 76.2 / 86.1 / 67.5 | 79.1 / 88.0 / 71.3 |
| S3x | 80.8 / 86.2 / 75.8 | 83.5 / 88.6 / 78.8 |
| M16n | 64.6 / 85.6 / 48.8 | 69.2 / 83.0 / 57.8 |
| M16x | 64.9 / 85.3 / 49.5 | 68.2 / 84.9 / 54.8 |
The boxes are almost as good with SAM 3.1 and the loss is on the identities. On the 57 videos SAM 3.1 is 11.6 points under SAM 3 (95% interval 7.5 to 16.0) and 46 videos go down. The constraint brings 4.6 points to SAM 3. On SAM 3.1 it brings 0.4 and the interval contains zero.
SAM 3.1 is about 1.7 times faster in this loop, 6.1 frames per second against 3.7 on one RTX 5080.
The model is built and the objects are added and removed with the official functions of the SAM 3 repository. I did not isolate what in the shared memory causes the loss. This is why the code and all the tracks are here.
Some details that matter to read the numbers.
- The loop is simpler than the full HoldTrack system, so SAM 3 is lower here than in the paper.
- I tuned on 8 training videos that are not among the 57. Then I froze everything and read the 57 once.
- On the 32 training videos the boxes come from a detector that did not see them. On the validation and test videos they come from the detector of HoldTrack.
- The test numbers are the ones returned by the DanceTrack server.
Two problems when I remove an object
cd sam31_multiplex
python code/reproduce_retirement.py /path/to/sam3
It needs the official SAM 3 repository at commit 7f473cfd983d5eb43040ff608f66bff0d7bdcb53. It runs on a CPU without weights.
- On dancetrack0027 I remove the last object that was there at the first frame of its state. The conditioning memory is cleared while two other objects are still tracked.
- On dancetrack0074 an object is removed but its prompt frame stays registered. Later the model refuses a new object at frame 1001.
In my runs I keep the memory of the objects that are still tracked, and I remove the orphan prompt frame. These two cases do not explain the gap. On dancetrack0001 the gap is there and neither of them happens. results/diagnostic_identites_dev3.json has the counts frame by frame for three videos.
Run one video
Put the SAM 3 repository (same commit) and SAM 2 at 2b90b9f5ceec907a1c18123530e92e794ad901a4 on PYTHONPATH. Set SAM3_SOURCE and SAM2_SOURCE to the two repositories and SAM3_PT and SAM31_PT to your checkpoints. FRAMES is the folder of the images of the video.
cd sam31_multiplex
python code/run_sequence.py M16n "$FRAMES" inputs/dev8/dancetrack0027 my_run
Replay HoldTrack
Install the environment of docs/REPRODUCE.md from the HoldTrack repository, then for example
python research/replays/mot17_test.py /path/to/this/folder/holdtrack_replay_data work_mot17
The replays that start from the images or from the faces need the images, the annotations and the face tables computed again on your side.
Check the files
sha256sum -c SHA256SUMS
- Downloads last month
- -