arcsort 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. arcsort-0.1.0/LICENSE +202 -0
  2. arcsort-0.1.0/NOTICE +17 -0
  3. arcsort-0.1.0/PKG-INFO +301 -0
  4. arcsort-0.1.0/README.md +263 -0
  5. arcsort-0.1.0/THIRD_PARTY_NOTICES.md +49 -0
  6. arcsort-0.1.0/arcsort/__init__.py +23 -0
  7. arcsort-0.1.0/arcsort/association.py +529 -0
  8. arcsort-0.1.0/arcsort/cmc.py +169 -0
  9. arcsort-0.1.0/arcsort/configs/__init__.py +35 -0
  10. arcsort-0.1.0/arcsort/configs/dancetrack.yaml +74 -0
  11. arcsort-0.1.0/arcsort/configs/sportsmot.yaml +80 -0
  12. arcsort-0.1.0/arcsort/configs/sportsmot_deepeiou_inputs.yaml +68 -0
  13. arcsort-0.1.0/arcsort/detection.py +367 -0
  14. arcsort-0.1.0/arcsort/imm_kalman_filter.py +977 -0
  15. arcsort-0.1.0/arcsort/interop.py +42 -0
  16. arcsort-0.1.0/arcsort/kalman_filter.py +347 -0
  17. arcsort-0.1.0/arcsort/matching.py +484 -0
  18. arcsort-0.1.0/arcsort/ocsort_components.py +160 -0
  19. arcsort-0.1.0/arcsort/reid.py +326 -0
  20. arcsort-0.1.0/arcsort/track.py +237 -0
  21. arcsort-0.1.0/arcsort/tracker.py +1181 -0
  22. arcsort-0.1.0/arcsort/utils.py +141 -0
  23. arcsort-0.1.0/arcsort/visualizer.py +109 -0
  24. arcsort-0.1.0/arcsort.egg-info/PKG-INFO +301 -0
  25. arcsort-0.1.0/arcsort.egg-info/SOURCES.txt +47 -0
  26. arcsort-0.1.0/arcsort.egg-info/dependency_links.txt +1 -0
  27. arcsort-0.1.0/arcsort.egg-info/requires.txt +21 -0
  28. arcsort-0.1.0/arcsort.egg-info/top_level.txt +1 -0
  29. arcsort-0.1.0/pyproject.toml +60 -0
  30. arcsort-0.1.0/setup.cfg +4 -0
  31. arcsort-0.1.0/tests/test_ambiguity.py +155 -0
  32. arcsort-0.1.0/tests/test_api.py +83 -0
  33. arcsort-0.1.0/tests/test_arbitration.py +122 -0
  34. arcsort-0.1.0/tests/test_association.py +582 -0
  35. arcsort-0.1.0/tests/test_cmc.py +293 -0
  36. arcsort-0.1.0/tests/test_cmc_oru.py +348 -0
  37. arcsort-0.1.0/tests/test_convert_deep_eiou.py +119 -0
  38. arcsort-0.1.0/tests/test_detection.py +45 -0
  39. arcsort-0.1.0/tests/test_eiou_modes.py +653 -0
  40. arcsort-0.1.0/tests/test_imm_kf.py +507 -0
  41. arcsort-0.1.0/tests/test_kalman_filter.py +273 -0
  42. arcsort-0.1.0/tests/test_matching.py +393 -0
  43. arcsort-0.1.0/tests/test_merge_tracklets.py +220 -0
  44. arcsort-0.1.0/tests/test_ocsort_components.py +200 -0
  45. arcsort-0.1.0/tests/test_reid.py +578 -0
  46. arcsort-0.1.0/tests/test_run_cached.py +130 -0
  47. arcsort-0.1.0/tests/test_track.py +247 -0
  48. arcsort-0.1.0/tests/test_tracker.py +766 -0
  49. arcsort-0.1.0/tests/test_utils.py +220 -0
arcsort-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
arcsort-0.1.0/NOTICE ADDED
@@ -0,0 +1,17 @@
1
+ ARC-SORT
2
+ Copyright 2026 Athlitix (Girish Kumar Adari)
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ This product includes software developed by third parties; see
17
+ THIRD_PARTY_NOTICES.md for the complete list and license texts/pointers.
arcsort-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,301 @@
1
+ Metadata-Version: 2.4
2
+ Name: arcsort
3
+ Version: 0.1.0
4
+ Summary: ARC-SORT: uncertainty-adaptive multi-object tracking for fast motion under moving cameras
5
+ Author-email: Girish Kumar Adari <girish@athlitix.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://athlitix.github.io/arcsort/
8
+ Project-URL: Repository, https://github.com/Athlitix/arcsort
9
+ Project-URL: Paper, https://arxiv.org/abs/2610.22306
10
+ Keywords: multi-object tracking,MOT,sports,kalman filter,IMM,SORT
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
15
+ Classifier: Topic :: Scientific/Engineering :: Image Recognition
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ License-File: NOTICE
20
+ License-File: THIRD_PARTY_NOTICES.md
21
+ Requires-Dist: numpy>=1.24
22
+ Requires-Dist: scipy>=1.10
23
+ Requires-Dist: opencv-python>=4.8
24
+ Requires-Dist: lap>=0.5.12
25
+ Requires-Dist: loguru>=0.7
26
+ Requires-Dist: pyyaml>=6.0
27
+ Provides-Extra: reid
28
+ Requires-Dist: torch>=2.1; extra == "reid"
29
+ Provides-Extra: viz
30
+ Requires-Dist: supervision>=0.20; extra == "viz"
31
+ Provides-Extra: eval
32
+ Requires-Dist: tqdm; extra == "eval"
33
+ Provides-Extra: yolo
34
+ Requires-Dist: ultralytics>=8.0; extra == "yolo"
35
+ Provides-Extra: dev
36
+ Requires-Dist: pytest>=7; extra == "dev"
37
+ Dynamic: license-file
38
+
39
+ # ARC-SORT
40
+
41
+ **Adaptive, Robust, Compensated Multi-Object Tracking with Interacting Multiple Models**
42
+
43
+ [![arXiv](https://img.shields.io/badge/arXiv-2610.22306-b31b1b.svg)](https://arxiv.org/abs/2610.22306)
44
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/Athlitix/arcsort/blob/main/LICENSE)
45
+ [![Project page](https://img.shields.io/badge/project-page-1f4fd8.svg)](https://athlitix.github.io/arcsort/)
46
+ [![PyPI](https://img.shields.io/pypi/v/arcsort.svg)](https://pypi.org/project/arcsort/)
47
+
48
+ ARC-SORT is a tracking-by-detection multi-object tracker for fast, non-linear motion under a
49
+ moving camera, such as athletes in sports broadcasts. Nothing is trained. It works with any detector and
50
+ runs at about 50 FPS on a laptop RTX 3060.
51
+
52
+ The idea: **the tracker measures its own uncertainty, and that measurement decides how it acts.**
53
+
54
+ - **IMM Kalman filter** (constant velocity / constant acceleration / coordinated turn) gives each
55
+ track a predictive covariance.
56
+ - **Uncertainty-adaptive Expansion IoU**: the less reliable a track's motion prediction, the larger
57
+ the region in which a detection may match it.
58
+ - **Deferred identity arbitration**: when two tracks cross and the assignment was a close call,
59
+ the pair stays under review; at most one corrective identity swap is applied once post-crossing
60
+ appearance evidence shows the first decision was wrong.
61
+ - **Camera-motion compensation**, BYTE two-stage matching, OC-SORT observation-centric recovery,
62
+ and appearance (ReID) costs.
63
+ - **Offline tracklet merge** that links players who leave the frame by appearance alone (no
64
+ motion gate, since extrapolating motion over seconds off-screen carries no information).
65
+
66
+ ## Results
67
+
68
+ Test-set numbers are from the official evaluation servers (CodaBench).
69
+
70
+ | Benchmark (test) | HOTA | AssA | DetA | MOTA | IDF1 | IDs |
71
+ |---|---|---|---|---|---|---|
72
+ | SportsMOT | **81.82** | 76.24 | 87.84 | 97.09 | 88.47 | 1414 |
73
+ | SportsMOT, Deep-EIoU's detections + embeddings | 80.31 | 74.14 | 87.04 | 96.65 | 86.92 | 1320 |
74
+ | DanceTrack | **62.1** | 48.2 | 80.3 | 92.4 | 66.5 | — |
75
+
76
+ As of August 2026, SportsMOT has the fewest identity switches of all 69 leaderboard entries.
77
+ On Deep-EIoU's own inputs, ARC-SORT is +3.1 HOTA over Deep-EIoU (77.2).
78
+
79
+ Validation numbers, reproducible locally (pooled TrackEval):
80
+
81
+ | Benchmark (val) | HOTA | AssA | IDF1 |
82
+ |---|---|---|---|
83
+ | SportsMOT | 84.96 | 82.96 | 92.79 |
84
+ | DanceTrack | 60.62 | 47.44 | 64.80 |
85
+
86
+ ## Installation
87
+
88
+ Python 3.10+ (developed on 3.12).
89
+
90
+ ```bash
91
+ git clone https://github.com/Athlitix/arcsort.git && cd arcsort
92
+ pip install -e ".[reid,eval]"
93
+ ```
94
+
95
+ For the GPU stages (detection, embeddings), install a CUDA build of PyTorch first; see
96
+ [pytorch.org](https://pytorch.org/get-started/locally/). Tracking from cached inputs runs on CPU.
97
+
98
+ External code (clone into `external/`, which is gitignored):
99
+
100
+ | Repo | Needed for | Command |
101
+ |---|---|---|
102
+ | [TrackEval](https://github.com/JonathonLuiten/TrackEval) | val evaluation | `git clone https://github.com/JonathonLuiten/TrackEval external/TrackEval` |
103
+ | [YOLOX](https://github.com/Megvii-BaseDetection/YOLOX) | regenerating detections | `git clone https://github.com/Megvii-BaseDetection/YOLOX external/YOLOX` |
104
+ | [Deep-OC-SORT](https://github.com/GerardMaggiolino/Deep-OC-SORT) | converting DanceTrack ReID weights (bundles FastReID) | `git clone https://github.com/GerardMaggiolino/Deep-OC-SORT external/Deep-OC-SORT` |
105
+
106
+ ## Quick start: track with any detector
107
+
108
+ ARC-SORT takes boxes and scores from any detector and returns boxes with persistent IDs:
109
+
110
+ ```python
111
+ from arcsort import ARCTracker
112
+
113
+ tracker = ARCTracker.from_preset("sportsmot") # motion-only, runs on CPU
114
+ # tracker = ARCTracker.from_preset("sportsmot", reid_weights="weights/sportsmot/sports_osnet_traced.pt")
115
+
116
+ for frame in video: # BGR numpy image
117
+ dets = my_detector(frame) # (N, 6): x1, y1, x2, y2, score, class_id
118
+ tracks = tracker.update(dets, frame) # (M, 5): x1, y1, x2, y2, track_id
119
+ ```
120
+
121
+ - **Presets**: `sportsmot` (recommended default for sports footage), `dancetrack`, and
122
+ `sportsmot_deepeiou_inputs`. Override any key, e.g.
123
+ `ARCTracker.from_preset("sportsmot", track_buffer=60, eiou={"adaptive_scale": 3.0})`.
124
+ - **`frame`** is used for camera-motion compensation and ReID crops. Pass it every frame
125
+ (or `use_cmc=False` for a static camera).
126
+ - **ReID** needs the `reid` extra, a CUDA GPU and converted weights (see [Weights](#weights)).
127
+ Without it the tracker runs motion-only.
128
+ - **Score thresholds**: the defaults (`track_high_thresh` 0.6, `new_track_thresh` 0.7) worked
129
+ best for every detector we tested. Lowering them reduced HOTA for ARC-SORT and for the
130
+ baselines alike. Run the detector itself with a low confidence floor (e.g. 0.05) so that BYTE's
131
+ second stage sees low-score boxes.
132
+ - **supervision** users: `arcsort.interop.from_supervision(detections)` and
133
+ `to_supervision(tracks)` convert to and from `sv.Detections` (`pip install arcsort[viz]`).
134
+ - Start a new video with `tracker.reset()`. Several trackers can run in one process (e.g. one per
135
+ camera); each numbers its own tracks.
136
+
137
+ A detector factory is included for common backends (`pip install arcsort[yolo]` for Ultralytics;
138
+ RF-DETR and transformers are installed separately):
139
+
140
+ ```python
141
+ from arcsort.detection import create_detector
142
+
143
+ detector = create_detector("yolo11x.pt", imgsz=1280, conf_thresh=0.05, classes=[0])
144
+ # also: "rfdetr-large", "PekingU/rtdetr_v2_r101vd", "rtdetr-x.pt" (use imgsz=640), YOLOX
145
+ dets = detector.detect(frame) # (N, 6), class ids in COCO-80 order (person = 0)
146
+ ```
147
+
148
+ ### Tested detectors
149
+
150
+ ARC-SORT was run unchanged (`from_preset("sportsmot")` with live ReID and CMC) behind the
151
+ detectors below. The test used three SportsMOT validation clips (basketball, football, volleyball;
152
+ 1,616 frames). Every tracker got identical detections. Baselines are the Roboflow
153
+ [`trackers`](https://github.com/roboflow/trackers) implementations with default settings.
154
+
155
+ | Detector | Library | ByteTrack | BoT-SORT | ARC-SORT online | ARC-SORT + offline merge |
156
+ |---|---|---|---|---|---|
157
+ | YOLOv8x | Ultralytics | 57.0 | 59.4 | **62.2** | **66.2** |
158
+ | YOLOv10x | Ultralytics | 61.8 | **63.9** | 61.6 | **65.0** |
159
+ | YOLO11x | Ultralytics | 57.5 | **60.3** | 58.6 | **62.6** |
160
+ | YOLO12x | Ultralytics | 56.7 | 59.8 | **60.9** | **65.7** |
161
+ | YOLO26x | Ultralytics | 57.0 | 57.0 | **59.8** | **64.3** |
162
+ | YOLOv13x | [iMoonLab fork](https://github.com/iMoonLab/yolov13) | 57.2 | 58.6 | **60.2** | **61.5** |
163
+ | RT-DETRv2-R101 | transformers | 57.9 | 58.7 | **59.8** | **64.0** |
164
+ | RF-DETR-L | rfdetr | 65.2 | 65.9 | **67.6** | **71.6** |
165
+ | YOLOX-X (SportsMOT-trained) | YOLOX | 77.0 | 78.6 | **81.4** | **84.7** |
166
+
167
+ HOTA; bold marks the best online and best overall result per row. This is a compatibility check,
168
+ not a benchmark: three clips are too few to rank trackers. COCO detectors also detect referees
169
+ and spectators, who are not labelled in SportsMOT, so their absolute scores are low for every
170
+ tracker. Run Ultralytics RT-DETR at its training size (`imgsz=640`); at 1280 it detects only a
171
+ third of the players.
172
+
173
+ ## Reproducing the paper
174
+
175
+ One command per row:
176
+
177
+ ```bash
178
+ scripts/reproduce.sh sportsmot val # prints HOTA 84.957
179
+ scripts/reproduce.sh dancetrack val # prints HOTA 60.617
180
+ scripts/reproduce.sh sportsmot test # writes outputs/arcsort_sportsmot_test.zip
181
+ scripts/reproduce.sh dancetrack test # writes outputs/arcsort_dancetrack_test.zip
182
+ scripts/reproduce.sh sportsmot_deepeiou test # Deep-EIoU's inputs
183
+ ```
184
+
185
+ Upload test zips to the [SportsMOT](https://www.codabench.org/competitions/13077/) or
186
+ [DanceTrack](https://www.codabench.org/competitions/14885/) CodaBench server.
187
+
188
+ The script runs five stages and skips any stage whose output already exists:
189
+
190
+ 1. **detections**: YOLOX-X, one file per sequence (GPU)
191
+ 2. **camera motion**: one affine transform per frame (CPU)
192
+ 3. **embeddings**: ReID features for every detection (GPU)
193
+ 4. **tracking**: online tracker → interpolation (gaps ≤ 10 frames) → offline tracklet merge (CPU)
194
+ 5. **evaluation** (val) or **packaging** (test)
195
+
196
+ ### Fast path: released caches
197
+
198
+ The [v0.1.0 release](https://github.com/Athlitix/arcsort/releases/tag/v0.1.0) contains our cached
199
+ detections and camera-motion transforms (`arcsort-v0.1.0-caches.tar.gz`, ~40 MB). Extract it at
200
+ the repository root and stages 1–2 are skipped:
201
+
202
+ ```bash
203
+ tar xzf arcsort-v0.1.0-caches.tar.gz # creates cache/detections/ and cache/cmc/
204
+ ```
205
+
206
+ ```
207
+ cache/
208
+ detections/{sportsmot,dancetrack}_{val,test}/<seq>.txt
209
+ cmc/{sportsmot,dancetrack}_{val,test}/<seq>.npy
210
+ embeddings/{sportsmot,dancetrack}_{val,test}/<seq>.npz # computed by stage 3 (GPU)
211
+ ```
212
+
213
+ The release also contains the result files we submitted to the evaluation servers
214
+ (`sportsmot_test.zip`, `dancetrack_test.zip`, `sportsmot_deepeiou_test.zip`). Put them in a folder,
215
+ e.g. `reference/`, and check your run against them:
216
+
217
+ ```bash
218
+ scripts/regression_gate.sh cache reference
219
+ ```
220
+
221
+ Detector and ReID outputs can differ in the last bits across GPU models and library versions, and
222
+ a few changed embeddings can flip a few association decisions. On other hardware, expect numbers
223
+ within noise of the paper, not byte-identical files. Our results were produced on an RTX 3060 Laptop
224
+ GPU with torch 2.5.1+cu121, numpy 2.4.3, opencv-python 4.13.0, scipy 1.17.1 and lap 0.5.13. On that
225
+ setup, every stage regenerates byte-identically from the raw upstream downloads.
226
+
227
+ ### Datasets
228
+
229
+ Download [SportsMOT](https://github.com/MCG-NJU/SportsMOT) and
230
+ [DanceTrack](https://github.com/DanceTrack/DanceTrack) and arrange them in MOTChallenge layout:
231
+
232
+ ```
233
+ data/
234
+ SportsMOT/{val,test}/<seq>/{img1/,gt/,seqinfo.ini}
235
+ DanceTrack/{val,test}/<seq>/{img1/,gt/,seqinfo.ini}
236
+ ```
237
+
238
+ Frames are needed for stages 1–3 only. Val evaluation needs `gt/`.
239
+
240
+ ### Weights
241
+
242
+ Weights are not redistributed here. Download them from the original authors:
243
+
244
+ | File in `weights/` | Used for | Source |
245
+ |---|---|---|
246
+ | `sportsmot/yolox_x_sports_train.pth.tar` | SportsMOT **val** detections (train-split checkpoint, so no val frame was seen) | [MixSort model zoo](https://github.com/MCG-NJU/MixSort) |
247
+ | `sportsmot/yolox_x_sports_mix.pth.tar` | SportsMOT **test** detections (train+val checkpoint) | [MixSort model zoo](https://github.com/MCG-NJU/MixSort) |
248
+ | `ocsort_dance_model.pth.tar` | DanceTrack detections | [OC-SORT model zoo](https://github.com/noahcao/OC_SORT) |
249
+ | `sportsmot/sports_osnet_traced.pt` | SportsMOT ReID | converted from Deep-EIoU's `sports_model.pth.tar-60` ([Deep-EIoU](https://github.com/hsiangwei0903/Deep-EIoU)), see below |
250
+ | `dance_sbs_S50_traced.pt` | DanceTrack ReID | converted from FastReID `dance_sbs_S50.pth` ([Deep-OC-SORT](https://github.com/GerardMaggiolino/Deep-OC-SORT)), see below |
251
+
252
+ ReID conversion to TorchScript (one-time, needs a CUDA GPU):
253
+
254
+ ```bash
255
+ # SportsMOT: sports-domain OSNet from Deep-EIoU
256
+ python tools/extract_state_dict.py --input sports_model.pth.tar-60 \
257
+ --output weights/sportsmot/sports_osnet_clean.pth
258
+ python tools/convert_osnet_weights.py --input weights/sportsmot/sports_osnet_clean.pth \
259
+ --output weights/sportsmot/sports_osnet_traced.pt
260
+
261
+ # DanceTrack: FastReID SBS-S50 (needs external/Deep-OC-SORT)
262
+ python tools/convert_reid_weights.py --input dance_sbs_S50.pth \
263
+ --output weights/dance_sbs_S50_traced.pt --config dancetrack
264
+ ```
265
+
266
+ `extract_state_dict.py` loads the training checkpoint with `weights_only=False`, so only run it
267
+ on files from the official release.
268
+
269
+ For the Deep-EIoU-inputs row, download Deep-EIoU's released SportsMOT test detections and
270
+ embeddings into `external/Deep-EIoU/{detection,embedding}/` (or set `DEEP_EIOU_ASSETS`).
271
+
272
+ ## Repository layout
273
+
274
+ ```
275
+ arcsort/ tracker package (IMM-KF, EIoU, CMC, ReID, arbitration, OC-SORT components)
276
+ arcsort/configs/ presets = the exact configurations behind each paper row
277
+ configs/detector/ YOLOX experiment files
278
+ tools/ caching, tracking, post-processing, evaluation, FPS benchmark, video demo
279
+ scripts/ reproduce.sh, regression_gate.sh
280
+ tests/ unit tests (pytest)
281
+ third_party/ vendored OSNet architecture (MIT)
282
+ docs/ project page (GitHub Pages)
283
+ ```
284
+
285
+ ## Citation
286
+
287
+ ```bibtex
288
+ @article{adari2026arcsort,
289
+ title = {{ARC-SORT}: Adaptive, Robust, Compensated Multi-Object Tracking with Interacting Multiple Models},
290
+ author = {Adari, Girish Kumar},
291
+ journal = {arXiv preprint arXiv:2610.22306},
292
+ year = {2026}
293
+ }
294
+ ```
295
+
296
+ ## License
297
+
298
+ Apache License 2.0; see [LICENSE](https://github.com/Athlitix/arcsort/blob/main/LICENSE) and [NOTICE](https://github.com/Athlitix/arcsort/blob/main/NOTICE). ARC-SORT builds on OC-SORT,
299
+ ByteTrack, BoT-SORT and Deep OC-SORT; see [THIRD_PARTY_NOTICES.md](https://github.com/Athlitix/arcsort/blob/main/THIRD_PARTY_NOTICES.md).
300
+ Pretrained weights and datasets are subject to their own licenses and terms, which may restrict
301
+ commercial use independently of this code's license.