tracktors 2.6.0.dev0__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.
- tracktors-2.6.0.dev0/LICENSE +201 -0
- tracktors-2.6.0.dev0/PKG-INFO +218 -0
- tracktors-2.6.0.dev0/README.md +174 -0
- tracktors-2.6.0.dev0/pyproject.toml +226 -0
- tracktors-2.6.0.dev0/setup.cfg +4 -0
- tracktors-2.6.0.dev0/src/trackers/__init__.py +58 -0
- tracktors-2.6.0.dev0/src/trackers/annotators/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/annotators/trace.py +219 -0
- tracktors-2.6.0.dev0/src/trackers/core/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/core/base.py +683 -0
- tracktors-2.6.0.dev0/src/trackers/core/botsort/__init__.py +8 -0
- tracktors-2.6.0.dev0/src/trackers/core/botsort/cmc.py +47 -0
- tracktors-2.6.0.dev0/src/trackers/core/botsort/tracker.py +503 -0
- tracktors-2.6.0.dev0/src/trackers/core/botsort/tracklet.py +252 -0
- tracktors-2.6.0.dev0/src/trackers/core/botsort/utils.py +92 -0
- tracktors-2.6.0.dev0/src/trackers/core/bytetrack/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/core/bytetrack/tracker.py +427 -0
- tracktors-2.6.0.dev0/src/trackers/core/bytetrack/tracklet.py +71 -0
- tracktors-2.6.0.dev0/src/trackers/core/bytetrack/utils.py +65 -0
- tracktors-2.6.0.dev0/src/trackers/core/cbiou/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/core/cbiou/tracker.py +335 -0
- tracktors-2.6.0.dev0/src/trackers/core/ocsort/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/core/ocsort/tracker.py +416 -0
- tracktors-2.6.0.dev0/src/trackers/core/ocsort/tracklet.py +371 -0
- tracktors-2.6.0.dev0/src/trackers/core/ocsort/utils.py +113 -0
- tracktors-2.6.0.dev0/src/trackers/core/sort/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/core/sort/tracker.py +294 -0
- tracktors-2.6.0.dev0/src/trackers/core/sort/tracklet.py +84 -0
- tracktors-2.6.0.dev0/src/trackers/core/sort/utils.py +153 -0
- tracktors-2.6.0.dev0/src/trackers/datasets/__init__.py +7 -0
- tracktors-2.6.0.dev0/src/trackers/datasets/download.py +167 -0
- tracktors-2.6.0.dev0/src/trackers/datasets/manifest.py +144 -0
- tracktors-2.6.0.dev0/src/trackers/eval/__init__.py +54 -0
- tracktors-2.6.0.dev0/src/trackers/eval/box.py +194 -0
- tracktors-2.6.0.dev0/src/trackers/eval/clear.py +365 -0
- tracktors-2.6.0.dev0/src/trackers/eval/constants.py +17 -0
- tracktors-2.6.0.dev0/src/trackers/eval/evaluate.py +421 -0
- tracktors-2.6.0.dev0/src/trackers/eval/hota.py +350 -0
- tracktors-2.6.0.dev0/src/trackers/eval/identity.py +235 -0
- tracktors-2.6.0.dev0/src/trackers/eval/results.py +704 -0
- tracktors-2.6.0.dev0/src/trackers/io/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/io/frames.py +67 -0
- tracktors-2.6.0.dev0/src/trackers/io/mot.py +469 -0
- tracktors-2.6.0.dev0/src/trackers/io/paths.py +40 -0
- tracktors-2.6.0.dev0/src/trackers/io/video.py +164 -0
- tracktors-2.6.0.dev0/src/trackers/motion/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/motion/estimator.py +225 -0
- tracktors-2.6.0.dev0/src/trackers/motion/transformation.py +144 -0
- tracktors-2.6.0.dev0/src/trackers/py.typed +0 -0
- tracktors-2.6.0.dev0/src/trackers/scripts/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/scripts/__main__.py +70 -0
- tracktors-2.6.0.dev0/src/trackers/scripts/download.py +109 -0
- tracktors-2.6.0.dev0/src/trackers/scripts/eval.py +169 -0
- tracktors-2.6.0.dev0/src/trackers/scripts/progress.py +232 -0
- tracktors-2.6.0.dev0/src/trackers/scripts/track.py +738 -0
- tracktors-2.6.0.dev0/src/trackers/scripts/tune.py +230 -0
- tracktors-2.6.0.dev0/src/trackers/tune/__init__.py +11 -0
- tracktors-2.6.0.dev0/src/trackers/tune/tuner.py +452 -0
- tracktors-2.6.0.dev0/src/trackers/utils/__init__.py +5 -0
- tracktors-2.6.0.dev0/src/trackers/utils/base_tracklet.py +113 -0
- tracktors-2.6.0.dev0/src/trackers/utils/cmc.py +935 -0
- tracktors-2.6.0.dev0/src/trackers/utils/converters.py +115 -0
- tracktors-2.6.0.dev0/src/trackers/utils/detections.py +49 -0
- tracktors-2.6.0.dev0/src/trackers/utils/device.py +30 -0
- tracktors-2.6.0.dev0/src/trackers/utils/downloader.py +230 -0
- tracktors-2.6.0.dev0/src/trackers/utils/general.py +73 -0
- tracktors-2.6.0.dev0/src/trackers/utils/iou.py +202 -0
- tracktors-2.6.0.dev0/src/trackers/utils/kalman_filter.py +155 -0
- tracktors-2.6.0.dev0/src/trackers/utils/motion_models.py +204 -0
- tracktors-2.6.0.dev0/src/trackers/utils/predict_timing.py +60 -0
- tracktors-2.6.0.dev0/src/trackers/utils/state_representations.py +341 -0
- tracktors-2.6.0.dev0/src/tracktors/__init__.py +20 -0
- tracktors-2.6.0.dev0/src/tracktors/py.typed +1 -0
- tracktors-2.6.0.dev0/src/tracktors.egg-info/PKG-INFO +218 -0
- tracktors-2.6.0.dev0/src/tracktors.egg-info/SOURCES.txt +78 -0
- tracktors-2.6.0.dev0/src/tracktors.egg-info/dependency_links.txt +1 -0
- tracktors-2.6.0.dev0/src/tracktors.egg-info/entry_points.txt +3 -0
- tracktors-2.6.0.dev0/src/tracktors.egg-info/requires.txt +14 -0
- tracktors-2.6.0.dev0/src/tracktors.egg-info/top_level.txt +2 -0
- tracktors-2.6.0.dev0/tests/test_namespace_compatibility.py +22 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tracktors
|
|
3
|
+
Version: 2.6.0.dev0
|
|
4
|
+
Summary: Tensor-native multi-object tracking for Roboflow Inference
|
|
5
|
+
Author-email: "Roboflow et al." <develop@roboflow.com>
|
|
6
|
+
Maintainer-email: Piotr Skalski <piotr@roboflow.com>
|
|
7
|
+
License: Apache License 2.0
|
|
8
|
+
Keywords: tracking,mot,sort,bytetrack,machine-learning,deep-learning,vision,ML,DL,AI,DETR,YOLO,Roboflow
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Intended Audience :: Education
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Topic :: Software Development
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
+
Classifier: Typing :: Typed
|
|
24
|
+
Classifier: Operating System :: POSIX
|
|
25
|
+
Classifier: Operating System :: Unix
|
|
26
|
+
Classifier: Operating System :: MacOS
|
|
27
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
28
|
+
Requires-Python: >=3.10
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: numpy>=2.0.2
|
|
32
|
+
Requires-Dist: superiorvision>=0.30.0.dev0
|
|
33
|
+
Requires-Dist: torch
|
|
34
|
+
Requires-Dist: scipy>=1.13.1
|
|
35
|
+
Requires-Dist: opencv-python>=4.8.0
|
|
36
|
+
Requires-Dist: rich>=13.0.0
|
|
37
|
+
Requires-Dist: requests>=2.28.0
|
|
38
|
+
Requires-Dist: pydeprecate>=0.7.0
|
|
39
|
+
Provides-Extra: detection
|
|
40
|
+
Requires-Dist: inference-models>=0.19.0; extra == "detection"
|
|
41
|
+
Provides-Extra: tune
|
|
42
|
+
Requires-Dist: optuna>=3.0.0; extra == "tune"
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
|
|
45
|
+
<div align="center">
|
|
46
|
+
<img width="200" src="docs/assets/logo-trackers-violet.svg" alt="tracktors logo">
|
|
47
|
+
<h1>tracktors</h1>
|
|
48
|
+
<p>Trackers, after the coordinates discovered tensors.</p>
|
|
49
|
+
|
|
50
|
+
[](LICENSE.md)
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
Tracktors is Roboflow's private, tensor-native fork of
|
|
55
|
+
[Trackers](https://github.com/roboflow/trackers), scoped to the four tracker
|
|
56
|
+
paths used by Inference: ByteTrack, SORT, OC-SORT, and BoT-SORT. It consumes
|
|
57
|
+
SuperiorVision's tensor-native `supervision.Detections` without making the
|
|
58
|
+
boxes take a ceremonial trip through NumPy first.
|
|
59
|
+
|
|
60
|
+
Both `from tracktors import ...` and the legacy `from trackers import ...`
|
|
61
|
+
interface are supported while Inference migrates. Same API, same algorithms,
|
|
62
|
+
fewer surprise CPU field trips.
|
|
63
|
+
|
|
64
|
+
Turning a GPU tensor into NumPy so a Kalman filter can immediately rebuild the
|
|
65
|
+
same numbers somewhere else is not object tracking. It is luggage handling.
|
|
66
|
+
Tracktors is retiring the carousel.
|
|
67
|
+
|
|
68
|
+
## Why Tracktors?
|
|
69
|
+
|
|
70
|
+
- **Clean-room implementations.** Every algorithm is re-implemented from the original paper — not a thin wrapper around someone else's code. You can read it, understand it, and modify it.
|
|
71
|
+
- **Detector-agnostic.** Works with YOLO, DETR, RT-DETR, or any model that produces bounding boxes. No inference library required or assumed.
|
|
72
|
+
- **SuperiorVision tensor native.** Pass tensor-backed `sv.Detections` in and get tensor-backed tracked detections back on the same device—zero glue code and zero NumPy exit tax.
|
|
73
|
+
- **Benchmarked across four datasets.** MOT17, SportsMOT, SoccerNet, and DanceTrack — at default parameters and after hyperparameter tuning, so you know what to expect before you deploy.
|
|
74
|
+
- **Tunable out of the box.** Built-in Optuna-based hyperparameter search via `tracktors tune` (or the compatible `trackers tune`) so you can optimize for your specific scene and detector.
|
|
75
|
+
- **Camera motion compensation.** BoT-SORT handles moving cameras natively, keeping track IDs stable even when the whole frame shifts.
|
|
76
|
+
|
|
77
|
+
## Install
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pip install "tracktors @ git+ssh://git@github.com/roboflow/tracktors.git"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
<details>
|
|
84
|
+
<summary>Install from source</summary>
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
git clone git@github.com:roboflow/tracktors.git
|
|
88
|
+
cd tracktors
|
|
89
|
+
uv sync
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
</details>
|
|
93
|
+
|
|
94
|
+
Tracktors is private and is not published to PyPI.
|
|
95
|
+
|
|
96
|
+
[](https://www.youtube.com/watch?v=u0k2dTZ0vfs)
|
|
97
|
+
|
|
98
|
+
## Quick Start
|
|
99
|
+
|
|
100
|
+
Add tracking to your existing detection pipeline in a few lines. Every tracker shares the same `update(detections, frame=None)` interface, so switching algorithms later is a one-line change. The example below uses `inference` as the detector — swap it for any detector that returns `supervision.Detections`.
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
import cv2
|
|
104
|
+
import supervision as sv
|
|
105
|
+
from inference import get_model
|
|
106
|
+
from tracktors import ByteTrackTracker
|
|
107
|
+
|
|
108
|
+
model = get_model(model_id="rfdetr-medium")
|
|
109
|
+
tracker = ByteTrackTracker()
|
|
110
|
+
|
|
111
|
+
cap = cv2.VideoCapture("video.mp4")
|
|
112
|
+
while cap.isOpened():
|
|
113
|
+
ret, frame = cap.read()
|
|
114
|
+
if not ret:
|
|
115
|
+
break
|
|
116
|
+
|
|
117
|
+
result = model.infer(frame)[0]
|
|
118
|
+
detections = sv.Detections.from_inference(result)
|
|
119
|
+
tracked = tracker.update(detections)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
For more examples, see the [tracking guide](https://trackers.roboflow.com/develop/learn/track/).
|
|
123
|
+
|
|
124
|
+
## Track from CLI
|
|
125
|
+
|
|
126
|
+
Prefer the terminal? Point `tracktors track` at a video, webcam feed, RTSP stream, or image directory and it handles detection, tracking, and annotated output in one command — no Python script required.
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
tracktors track \
|
|
130
|
+
--source video.mp4 \
|
|
131
|
+
--output output.mp4 \
|
|
132
|
+
--model rfdetr-medium \
|
|
133
|
+
--tracker bytetrack \
|
|
134
|
+
--show-labels \
|
|
135
|
+
--show-trajectories
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
For all CLI options, see the [tracking guide](https://trackers.roboflow.com/develop/learn/track/).
|
|
139
|
+
|
|
140
|
+
## Algorithms
|
|
141
|
+
|
|
142
|
+
Each tracker below is a faithful implementation of its original paper. Pick the one that fits your scene, or run the benchmark to find out which performs best on your data.
|
|
143
|
+
|
|
144
|
+
| Algorithm | Description | MOT17 HOTA | SportsMOT HOTA | SoccerNet HOTA | DanceTrack HOTA |
|
|
145
|
+
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------: | :--------: | :------------: | :------------: | :-------------: |
|
|
146
|
+
| [SORT](https://arxiv.org/abs/1602.00763) | Kalman filter + Hungarian matching baseline. | 58.4 | 70.9 | 81.6 | 47.2 |
|
|
147
|
+
| [ByteTrack](https://arxiv.org/abs/2110.06864) | Two-stage association using high and low confidence detections. | 60.1 | 73.0 | 84.0 | 53.3 |
|
|
148
|
+
| [OC-SORT](https://arxiv.org/abs/2203.14360) | Observation-centric recovery for lost tracks. | 61.9 | 71.7 | 78.4 | 54.1 |
|
|
149
|
+
| [BoT-SORT](https://arxiv.org/abs/2206.14651) | Camera motion compensation | **63.7** | **73.8** | **84.5** | **57.8** |
|
|
150
|
+
| [C-BIoU](https://openaccess.thecvf.com/content/WACV2023/papers/Yang_Hard_To_Track_Objects_With_Irregular_Motions_and_Similar_Appearances_WACV_2023_paper.pdf) | Cascaded buffered IoU matching for fast or irregular motion. | 63.0 | 73.1 | 82.6 | 56.7 |
|
|
151
|
+
|
|
152
|
+
All scores use default parameters on the standard split. See the [tracker comparison](https://trackers.roboflow.com/develop/trackers/comparison/) for tuned numbers and methodology.
|
|
153
|
+
|
|
154
|
+
## Evaluate
|
|
155
|
+
|
|
156
|
+
Once you have tracking results, you want to know how good they are. `trackers eval` computes CLEAR, HOTA, and Identity metrics against ground-truth annotations and prints a per-sequence breakdown alongside the combined score.
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
tracktors eval \
|
|
160
|
+
--gt-dir ./data/mot17/val \
|
|
161
|
+
--tracker-dir results \
|
|
162
|
+
--metrics CLEAR HOTA Identity \
|
|
163
|
+
--columns MOTA HOTA IDF1
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
Sequence MOTA HOTA IDF1
|
|
168
|
+
----------------------------------------------------
|
|
169
|
+
MOT17-02-FRCNN 30.192 35.475 38.515
|
|
170
|
+
MOT17-04-FRCNN 48.912 55.096 61.854
|
|
171
|
+
MOT17-05-FRCNN 52.755 45.515 55.705
|
|
172
|
+
MOT17-09-FRCNN 51.441 50.108 57.038
|
|
173
|
+
MOT17-10-FRCNN 51.832 49.648 55.797
|
|
174
|
+
MOT17-11-FRCNN 55.501 49.401 55.061
|
|
175
|
+
MOT17-13-FRCNN 60.488 58.651 69.884
|
|
176
|
+
----------------------------------------------------
|
|
177
|
+
COMBINED 47.406 50.355 56.600
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
For the full evaluation workflow, see the [evaluation guide](https://trackers.roboflow.com/develop/learn/evaluate/).
|
|
181
|
+
|
|
182
|
+
## Download Datasets
|
|
183
|
+
|
|
184
|
+
Need benchmark data to evaluate against? `trackers download` pulls MOT17, SportsMOT, and other supported datasets with a single command, handling splits and assets selectively so you only download what you need.
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
tracktors download mot17 \
|
|
188
|
+
--split val \
|
|
189
|
+
--asset annotations,detections
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
| Dataset | Description | Splits | Assets | License |
|
|
193
|
+
| :---------: | :---------------------------------------------------------------------: | :--------------------: | :-----------------------------------: | :-------------: |
|
|
194
|
+
| `mot17` | Pedestrian tracking with crowded scenes and frequent occlusions. | `train`, `val`, `test` | `frames`, `annotations`, `detections` | CC BY-NC-SA 3.0 |
|
|
195
|
+
| `sportsmot` | Sports broadcast tracking with fast motion and similar-looking targets. | `train`, `val`, `test` | `frames`, `annotations` | CC BY 4.0 |
|
|
196
|
+
|
|
197
|
+
For more download options, see the [download guide](https://trackers.roboflow.com/develop/learn/download/).
|
|
198
|
+
|
|
199
|
+
## Try It
|
|
200
|
+
|
|
201
|
+
Want to see it in action before writing any code? Try trackers in your browser with our [Hugging Face Playground](https://huggingface.co/spaces/roboflow/trackers) — no install required.
|
|
202
|
+
|
|
203
|
+
## Where to go next
|
|
204
|
+
|
|
205
|
+
- **New to tracking?** Start with the [tracking guide](https://trackers.roboflow.com/develop/learn/track/) — it walks through the Python API and CLI end to end.
|
|
206
|
+
- **Want benchmarks?** The [tracker comparison](https://trackers.roboflow.com/develop/trackers/comparison/) covers all four algorithms across all four datasets, at default and tuned parameters, with guidance on which to pick for your scene.
|
|
207
|
+
- **Building a research pipeline?** The [evaluation guide](https://trackers.roboflow.com/develop/learn/evaluate/) and [download guide](https://trackers.roboflow.com/develop/learn/download/) cover the full offline benchmarking workflow.
|
|
208
|
+
- **Upstream API reference** → [trackers.roboflow.com](https://trackers.roboflow.com)
|
|
209
|
+
- **Try without installing** → [Hugging Face Playground](https://huggingface.co/spaces/roboflow/trackers)
|
|
210
|
+
- **Questions?** Find us on [Discord](https://discord.gg/GbfgXGJ8Bk).
|
|
211
|
+
|
|
212
|
+
## Contributing
|
|
213
|
+
|
|
214
|
+
We welcome contributions. Read our [contributor guidelines](CONTRIBUTING.md) to get started.
|
|
215
|
+
|
|
216
|
+
## License
|
|
217
|
+
|
|
218
|
+
The code is released under the [Apache 2.0 license](LICENSE.md).
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img width="200" src="docs/assets/logo-trackers-violet.svg" alt="tracktors logo">
|
|
3
|
+
<h1>tracktors</h1>
|
|
4
|
+
<p>Trackers, after the coordinates discovered tensors.</p>
|
|
5
|
+
|
|
6
|
+
[](LICENSE.md)
|
|
7
|
+
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
Tracktors is Roboflow's private, tensor-native fork of
|
|
11
|
+
[Trackers](https://github.com/roboflow/trackers), scoped to the four tracker
|
|
12
|
+
paths used by Inference: ByteTrack, SORT, OC-SORT, and BoT-SORT. It consumes
|
|
13
|
+
SuperiorVision's tensor-native `supervision.Detections` without making the
|
|
14
|
+
boxes take a ceremonial trip through NumPy first.
|
|
15
|
+
|
|
16
|
+
Both `from tracktors import ...` and the legacy `from trackers import ...`
|
|
17
|
+
interface are supported while Inference migrates. Same API, same algorithms,
|
|
18
|
+
fewer surprise CPU field trips.
|
|
19
|
+
|
|
20
|
+
Turning a GPU tensor into NumPy so a Kalman filter can immediately rebuild the
|
|
21
|
+
same numbers somewhere else is not object tracking. It is luggage handling.
|
|
22
|
+
Tracktors is retiring the carousel.
|
|
23
|
+
|
|
24
|
+
## Why Tracktors?
|
|
25
|
+
|
|
26
|
+
- **Clean-room implementations.** Every algorithm is re-implemented from the original paper — not a thin wrapper around someone else's code. You can read it, understand it, and modify it.
|
|
27
|
+
- **Detector-agnostic.** Works with YOLO, DETR, RT-DETR, or any model that produces bounding boxes. No inference library required or assumed.
|
|
28
|
+
- **SuperiorVision tensor native.** Pass tensor-backed `sv.Detections` in and get tensor-backed tracked detections back on the same device—zero glue code and zero NumPy exit tax.
|
|
29
|
+
- **Benchmarked across four datasets.** MOT17, SportsMOT, SoccerNet, and DanceTrack — at default parameters and after hyperparameter tuning, so you know what to expect before you deploy.
|
|
30
|
+
- **Tunable out of the box.** Built-in Optuna-based hyperparameter search via `tracktors tune` (or the compatible `trackers tune`) so you can optimize for your specific scene and detector.
|
|
31
|
+
- **Camera motion compensation.** BoT-SORT handles moving cameras natively, keeping track IDs stable even when the whole frame shifts.
|
|
32
|
+
|
|
33
|
+
## Install
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install "tracktors @ git+ssh://git@github.com/roboflow/tracktors.git"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
<details>
|
|
40
|
+
<summary>Install from source</summary>
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
git clone git@github.com:roboflow/tracktors.git
|
|
44
|
+
cd tracktors
|
|
45
|
+
uv sync
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
</details>
|
|
49
|
+
|
|
50
|
+
Tracktors is private and is not published to PyPI.
|
|
51
|
+
|
|
52
|
+
[](https://www.youtube.com/watch?v=u0k2dTZ0vfs)
|
|
53
|
+
|
|
54
|
+
## Quick Start
|
|
55
|
+
|
|
56
|
+
Add tracking to your existing detection pipeline in a few lines. Every tracker shares the same `update(detections, frame=None)` interface, so switching algorithms later is a one-line change. The example below uses `inference` as the detector — swap it for any detector that returns `supervision.Detections`.
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
import cv2
|
|
60
|
+
import supervision as sv
|
|
61
|
+
from inference import get_model
|
|
62
|
+
from tracktors import ByteTrackTracker
|
|
63
|
+
|
|
64
|
+
model = get_model(model_id="rfdetr-medium")
|
|
65
|
+
tracker = ByteTrackTracker()
|
|
66
|
+
|
|
67
|
+
cap = cv2.VideoCapture("video.mp4")
|
|
68
|
+
while cap.isOpened():
|
|
69
|
+
ret, frame = cap.read()
|
|
70
|
+
if not ret:
|
|
71
|
+
break
|
|
72
|
+
|
|
73
|
+
result = model.infer(frame)[0]
|
|
74
|
+
detections = sv.Detections.from_inference(result)
|
|
75
|
+
tracked = tracker.update(detections)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
For more examples, see the [tracking guide](https://trackers.roboflow.com/develop/learn/track/).
|
|
79
|
+
|
|
80
|
+
## Track from CLI
|
|
81
|
+
|
|
82
|
+
Prefer the terminal? Point `tracktors track` at a video, webcam feed, RTSP stream, or image directory and it handles detection, tracking, and annotated output in one command — no Python script required.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
tracktors track \
|
|
86
|
+
--source video.mp4 \
|
|
87
|
+
--output output.mp4 \
|
|
88
|
+
--model rfdetr-medium \
|
|
89
|
+
--tracker bytetrack \
|
|
90
|
+
--show-labels \
|
|
91
|
+
--show-trajectories
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
For all CLI options, see the [tracking guide](https://trackers.roboflow.com/develop/learn/track/).
|
|
95
|
+
|
|
96
|
+
## Algorithms
|
|
97
|
+
|
|
98
|
+
Each tracker below is a faithful implementation of its original paper. Pick the one that fits your scene, or run the benchmark to find out which performs best on your data.
|
|
99
|
+
|
|
100
|
+
| Algorithm | Description | MOT17 HOTA | SportsMOT HOTA | SoccerNet HOTA | DanceTrack HOTA |
|
|
101
|
+
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------: | :--------: | :------------: | :------------: | :-------------: |
|
|
102
|
+
| [SORT](https://arxiv.org/abs/1602.00763) | Kalman filter + Hungarian matching baseline. | 58.4 | 70.9 | 81.6 | 47.2 |
|
|
103
|
+
| [ByteTrack](https://arxiv.org/abs/2110.06864) | Two-stage association using high and low confidence detections. | 60.1 | 73.0 | 84.0 | 53.3 |
|
|
104
|
+
| [OC-SORT](https://arxiv.org/abs/2203.14360) | Observation-centric recovery for lost tracks. | 61.9 | 71.7 | 78.4 | 54.1 |
|
|
105
|
+
| [BoT-SORT](https://arxiv.org/abs/2206.14651) | Camera motion compensation | **63.7** | **73.8** | **84.5** | **57.8** |
|
|
106
|
+
| [C-BIoU](https://openaccess.thecvf.com/content/WACV2023/papers/Yang_Hard_To_Track_Objects_With_Irregular_Motions_and_Similar_Appearances_WACV_2023_paper.pdf) | Cascaded buffered IoU matching for fast or irregular motion. | 63.0 | 73.1 | 82.6 | 56.7 |
|
|
107
|
+
|
|
108
|
+
All scores use default parameters on the standard split. See the [tracker comparison](https://trackers.roboflow.com/develop/trackers/comparison/) for tuned numbers and methodology.
|
|
109
|
+
|
|
110
|
+
## Evaluate
|
|
111
|
+
|
|
112
|
+
Once you have tracking results, you want to know how good they are. `trackers eval` computes CLEAR, HOTA, and Identity metrics against ground-truth annotations and prints a per-sequence breakdown alongside the combined score.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
tracktors eval \
|
|
116
|
+
--gt-dir ./data/mot17/val \
|
|
117
|
+
--tracker-dir results \
|
|
118
|
+
--metrics CLEAR HOTA Identity \
|
|
119
|
+
--columns MOTA HOTA IDF1
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
Sequence MOTA HOTA IDF1
|
|
124
|
+
----------------------------------------------------
|
|
125
|
+
MOT17-02-FRCNN 30.192 35.475 38.515
|
|
126
|
+
MOT17-04-FRCNN 48.912 55.096 61.854
|
|
127
|
+
MOT17-05-FRCNN 52.755 45.515 55.705
|
|
128
|
+
MOT17-09-FRCNN 51.441 50.108 57.038
|
|
129
|
+
MOT17-10-FRCNN 51.832 49.648 55.797
|
|
130
|
+
MOT17-11-FRCNN 55.501 49.401 55.061
|
|
131
|
+
MOT17-13-FRCNN 60.488 58.651 69.884
|
|
132
|
+
----------------------------------------------------
|
|
133
|
+
COMBINED 47.406 50.355 56.600
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
For the full evaluation workflow, see the [evaluation guide](https://trackers.roboflow.com/develop/learn/evaluate/).
|
|
137
|
+
|
|
138
|
+
## Download Datasets
|
|
139
|
+
|
|
140
|
+
Need benchmark data to evaluate against? `trackers download` pulls MOT17, SportsMOT, and other supported datasets with a single command, handling splits and assets selectively so you only download what you need.
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
tracktors download mot17 \
|
|
144
|
+
--split val \
|
|
145
|
+
--asset annotations,detections
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
| Dataset | Description | Splits | Assets | License |
|
|
149
|
+
| :---------: | :---------------------------------------------------------------------: | :--------------------: | :-----------------------------------: | :-------------: |
|
|
150
|
+
| `mot17` | Pedestrian tracking with crowded scenes and frequent occlusions. | `train`, `val`, `test` | `frames`, `annotations`, `detections` | CC BY-NC-SA 3.0 |
|
|
151
|
+
| `sportsmot` | Sports broadcast tracking with fast motion and similar-looking targets. | `train`, `val`, `test` | `frames`, `annotations` | CC BY 4.0 |
|
|
152
|
+
|
|
153
|
+
For more download options, see the [download guide](https://trackers.roboflow.com/develop/learn/download/).
|
|
154
|
+
|
|
155
|
+
## Try It
|
|
156
|
+
|
|
157
|
+
Want to see it in action before writing any code? Try trackers in your browser with our [Hugging Face Playground](https://huggingface.co/spaces/roboflow/trackers) — no install required.
|
|
158
|
+
|
|
159
|
+
## Where to go next
|
|
160
|
+
|
|
161
|
+
- **New to tracking?** Start with the [tracking guide](https://trackers.roboflow.com/develop/learn/track/) — it walks through the Python API and CLI end to end.
|
|
162
|
+
- **Want benchmarks?** The [tracker comparison](https://trackers.roboflow.com/develop/trackers/comparison/) covers all four algorithms across all four datasets, at default and tuned parameters, with guidance on which to pick for your scene.
|
|
163
|
+
- **Building a research pipeline?** The [evaluation guide](https://trackers.roboflow.com/develop/learn/evaluate/) and [download guide](https://trackers.roboflow.com/develop/learn/download/) cover the full offline benchmarking workflow.
|
|
164
|
+
- **Upstream API reference** → [trackers.roboflow.com](https://trackers.roboflow.com)
|
|
165
|
+
- **Try without installing** → [Hugging Face Playground](https://huggingface.co/spaces/roboflow/trackers)
|
|
166
|
+
- **Questions?** Find us on [Discord](https://discord.gg/GbfgXGJ8Bk).
|
|
167
|
+
|
|
168
|
+
## Contributing
|
|
169
|
+
|
|
170
|
+
We welcome contributions. Read our [contributor guidelines](CONTRIBUTING.md) to get started.
|
|
171
|
+
|
|
172
|
+
## License
|
|
173
|
+
|
|
174
|
+
The code is released under the [Apache 2.0 license](LICENSE.md).
|