Skip to content

Commit 07f7488

Browse files
fix(pre_commit): 🎨 auto format pre-commit hooks
1 parent bfb8903 commit 07f7488

6 files changed

Lines changed: 38 additions & 104 deletions

File tree

CODE_OF_CONDUCT.md

Lines changed: 25 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -2,129 +2,81 @@
22

33
## Our Pledge
44

5-
We as members, contributors, and leaders pledge to make participation in our
6-
community a harassment-free experience for everyone, regardless of age, body
7-
size, visible or invisible disability, ethnicity, sex characteristics, gender
8-
identity and expression, level of experience, education, socioeconomic status,
9-
nationality, personal appearance, race, caste, color, religion, or sexual
10-
identity and orientation.
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
116

12-
We pledge to act and interact in ways that contribute to an open, welcoming,
13-
diverse, inclusive, and healthy community.
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
148

159
## Our Standards
1610

17-
Examples of behavior that contributes to a positive environment for our
18-
community include:
11+
Examples of behavior that contributes to a positive environment for our community include:
1912

2013
- Demonstrating empathy and kindness toward other people
2114
- Being respectful of differing opinions, viewpoints, and experiences
2215
- Giving and gracefully accepting constructive feedback
23-
- Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
- Focusing on what is best not just for us as individuals, but for the overall
26-
community
16+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best not just for us as individuals, but for the overall community
2718

2819
Examples of unacceptable behavior include:
2920

30-
- The use of sexualized language or imagery, and sexual attention or advances of
31-
any kind
21+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
3222
- Trolling, insulting or derogatory comments, and personal or political attacks
3323
- Public or private harassment
34-
- Publishing others' private information, such as a physical or email address,
35-
without their explicit permission
36-
- Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
24+
- Publishing others' private information, such as a physical or email address, without their explicit permission
25+
- Other conduct which could reasonably be considered inappropriate in a professional setting
3826

3927
## Enforcement Responsibilities
4028

41-
Community leaders are responsible for clarifying and enforcing our standards of
42-
acceptable behavior and will take appropriate and fair corrective action in
43-
response to any behavior that they deem inappropriate, threatening, offensive,
44-
or harmful.
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
4530

46-
Community leaders have the right and responsibility to remove, edit, or reject
47-
comments, commits, code, wiki edits, issues, and other contributions that are
48-
not aligned to this Code of Conduct, and will communicate reasons for moderation
49-
decisions when appropriate.
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
5032

5133
## Scope
5234

53-
This Code of Conduct applies within all community spaces, and also applies when
54-
an individual is officially representing the community in public spaces.
55-
Examples of representing our community include using an official e-mail address,
56-
posting via an official social media account, or acting as an appointed
57-
representative at an online or offline event.
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
5836

5937
## Enforcement
6038

61-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at
63-
community-reports@roboflow.com.
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at community-reports@roboflow.com.
6440

6541
All complaints will be reviewed and investigated promptly and fairly.
6642

67-
All community leaders are obligated to respect the privacy and security of the
68-
reporter of any incident.
43+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
6944

7045
## Enforcement Guidelines
7146

72-
Community leaders will follow these Community Impact Guidelines in determining
73-
the consequences for any action they deem in violation of this Code of Conduct:
47+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
7448

7549
### 1. Correction
7650

77-
**Community Impact**: Use of inappropriate language or other behavior deemed
78-
unprofessional or unwelcome in the community.
51+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
7952

80-
**Consequence**: A private, written warning from community leaders, providing
81-
clarity around the nature of the violation and an explanation of why the
82-
behavior was inappropriate. A public apology may be requested.
53+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
8354

8455
### 2. Warning
8556

86-
**Community Impact**: A violation through a single incident or series of
87-
actions.
57+
**Community Impact**: A violation through a single incident or series of actions.
8858

89-
**Consequence**: A warning with consequences for continued behavior. No
90-
interaction with the people involved, including unsolicited interaction with
91-
those enforcing the Code of Conduct, for a specified period of time. This
92-
includes avoiding interactions in community spaces as well as external channels
93-
like social media. Violating these terms may lead to a temporary or permanent
94-
ban.
59+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
9560

9661
### 3. Temporary Ban
9762

98-
**Community Impact**: A serious violation of community standards, including
99-
sustained inappropriate behavior.
63+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
10064

101-
**Consequence**: A temporary ban from any sort of interaction or public
102-
communication with the community for a specified period of time. No public or
103-
private interaction with the people involved, including unsolicited interaction
104-
with those enforcing the Code of Conduct, is allowed during this period.
105-
Violating these terms may lead to a permanent ban.
65+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
10666

10767
### 4. Permanent Ban
10868

109-
**Community Impact**: Demonstrating a pattern of violation of community
110-
standards, including sustained inappropriate behavior, harassment of an
111-
individual, or aggression toward or disparagement of classes of individuals.
69+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
11270

113-
**Consequence**: A permanent ban from any sort of public interaction within the
114-
community.
71+
**Consequence**: A permanent ban from any sort of public interaction within the community.
11572

11673
## Attribution
11774

118-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119-
version 2.1, available at
120-
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
75+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
12176

122-
Community Impact Guidelines were inspired by
123-
[Mozilla's code of conduct enforcement ladder][mozilla coc].
77+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
12478

125-
For answers to common questions about this code of conduct, see the FAQ at
126-
[https://www.contributor-covenant.org/faq][faq]. Translations are available at
127-
[https://www.contributor-covenant.org/translations][translations].
79+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
12880

12981
[faq]: https://www.contributor-covenant.org/faq
13082
[homepage]: https://www.contributor-covenant.org

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
<h1>trackers</h1>
44
<p>Plug-and-play multi-object tracking for any detection model.</p>
55

6-
[![version](https://badge.fury.io/py/trackers.svg)](https://badge.fury.io/py/trackers)
7-
[![downloads](https://img.shields.io/pypi/dm/trackers)](https://pypistats.org/packages/trackers)
8-
[![license](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/roboflow/trackers/blob/release/stable/LICENSE.md)
9-
[![python-version](https://img.shields.io/pypi/pyversions/trackers)](https://badge.fury.io/py/trackers)
10-
[![colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-bytetrack-tracker.ipynb)
11-
[![discord](https://img.shields.io/discord/1159501506232451173?logo=discord&label=discord&labelColor=fff&color=5865f2&link=https%3A%2F%2Fdiscord.gg%2FGbfgXGJ8Bk)](https://discord.gg/GbfgXGJ8Bk)
6+
[![version](https://badge.fury.io/py/trackers.svg)](https://badge.fury.io/py/trackers) [![downloads](https://img.shields.io/pypi/dm/trackers)](https://pypistats.org/packages/trackers) [![license](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/roboflow/trackers/blob/release/stable/LICENSE.md) [![python-version](https://img.shields.io/pypi/pyversions/trackers)](https://badge.fury.io/py/trackers) [![colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-bytetrack-tracker.ipynb) [![discord](https://img.shields.io/discord/1159501506232451173?logo=discord&label=discord&labelColor=fff&color=5865f2&link=https%3A%2F%2Fdiscord.gg%2FGbfgXGJ8Bk)](https://discord.gg/GbfgXGJ8Bk)
127

138
</div>
149

autotrack/best_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,4 @@
239239
}
240240
}
241241
}
242-
}
242+
}

docs/trackers/comparison.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Pedestrian tracking with crowded scenes and frequent occlusions. Strongly tests
1313

1414
!!! info
1515

16-
Parameters were tuned on the validation set. Results are reported on the
17-
test set via Codabench submission. Detections come from a YOLOX model.
16+
Parameters were tuned on the validation set. Results are reported on the test set via Codabench submission. Detections come from a YOLOX model.
1817

1918
=== "Default"
2019

@@ -72,8 +71,7 @@ Sports broadcast tracking with fast motion, camera pans, and similar-looking tar
7271

7372
!!! info
7473

75-
Parameters were tuned on the validation set. Results are reported on the
76-
test set via Codabench submission. Detections come from a YOLOX model.
74+
Parameters were tuned on the validation set. Results are reported on the test set via Codabench submission. Detections come from a YOLOX model.
7775

7876
=== "Default"
7977

@@ -131,9 +129,7 @@ Long sequences with dense interactions and partial occlusions. Tests long-term I
131129

132130
!!! info
133131

134-
Parameters were tuned on the train set. Results are reported on the test
135-
set. SoccerNet-tracking has no validation split. This dataset provides
136-
oracle (ground-truth) detections.
132+
Parameters were tuned on the train set. Results are reported on the test set. SoccerNet-tracking has no validation split. This dataset provides oracle (ground-truth) detections.
137133

138134
=== "Default"
139135

@@ -191,15 +187,11 @@ Group dancing tracking with uniform appearance, diverse motions, and extreme art
191187

192188
!!! warning
193189

194-
DanceTrack test set evaluation is currently unavailable because CodaLab, which hosted
195-
the benchmark, has been [discontinued](https://docs.codabench.org/dev/Newsletters_Archive/CodaLab-in-2025/).
196-
Migration to Codabench is [in progress](https://github.com/DanceTrack/DanceTrack/issues/42).
197-
Results below use the validation set instead.
190+
DanceTrack test set evaluation is currently unavailable because CodaLab, which hosted the benchmark, has been [discontinued](https://docs.codabench.org/dev/Newsletters_Archive/CodaLab-in-2025/). Migration to Codabench is [in progress](https://github.com/DanceTrack/DanceTrack/issues/42). Results below use the validation set instead.
198191

199192
!!! info
200193

201-
Parameters were tuned on the train set. Results are reported on the
202-
validation set. This dataset provides oracle (ground-truth) detections.
194+
Parameters were tuned on the train set. Results are reported on the validation set. This dataset provides oracle (ground-truth) detections.
203195

204196
=== "Default"
205197

@@ -250,15 +242,11 @@ Group dancing tracking with uniform appearance, diverse motions, and extreme art
250242

251243
### Detections
252244

253-
Each dataset uses one of two detection sources: oracle detections (ground-truth
254-
bounding boxes provided by the dataset) or model detections (produced by a YOLOX
255-
detector following the ByteTrack procedure). The source is noted per dataset above.
245+
Each dataset uses one of two detection sources: oracle detections (ground-truth bounding boxes provided by the dataset) or model detections (produced by a YOLOX detector following the ByteTrack procedure). The source is noted per dataset above.
256246

257247
### Tuning
258248

259-
Best parameters per tracker and dataset were found via grid search, selecting the
260-
configuration with the highest HOTA. Tuning and evaluation always use separate data
261-
splits to reflect real-world usage:
249+
Best parameters per tracker and dataset were found via grid search, selecting the configuration with the highest HOTA. Tuning and evaluation always use separate data splits to reflect real-world usage:
262250

263251
- Train + validation + test: tune on validation, report on test.
264252
- Train + validation: tune on train, report on validation.

docs/trackers/ocsort.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ comments: true
66

77
## Overview
88

9-
OC-SORT remains Simple, Online, and Real-Time like ([SORT](../sort/tracker.md)) but improves robustness during occlusion and non-linear motion.
10-
It recognizes limitations from SORT and the linear motion assumption of the Kalman filter, and adds three mechanisms to enhance tracking. These
11-
mechanisms help having better Kalman Filter parameters after an occlusion, add a term to the association process to incorporate how consistent is the direction with the new association with respect to the tracks' previous direction and add a second-stage association step between the last observation of unmatched tracks and the unmatched observations after the usual association to attempt to recover tracks that were lost
12-
due to object stopping or short-term occlusion.
9+
OC-SORT remains Simple, Online, and Real-Time like ([SORT](../sort/tracker.md)) but improves robustness during occlusion and non-linear motion. It recognizes limitations from SORT and the linear motion assumption of the Kalman filter, and adds three mechanisms to enhance tracking. These mechanisms help having better Kalman Filter parameters after an occlusion, add a term to the association process to incorporate how consistent is the direction with the new association with respect to the tracks' previous direction and add a second-stage association step between the last observation of unmatched tracks and the unmatched observations after the usual association to attempt to recover tracks that were lost due to object stopping or short-term occlusion.
1310

1411
## Comparison
1512

trackers/core/bytetrack/tracker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ def _get_associated_indices(
259259
unmatched_detections = set(range(n_detections))
260260

261261
# Use raw similarity for threshold gating when available
262-
thresh_matrix = raw_similarity if raw_similarity is not None else similarity_matrix
262+
thresh_matrix = (
263+
raw_similarity if raw_similarity is not None else similarity_matrix
264+
)
263265

264266
if n_tracks > 0 and n_detections > 0:
265267
row_indices, col_indices = linear_sum_assignment(

0 commit comments

Comments
 (0)