Skip to content

Commit

Permalink
Merge pull request #1793 from 14790897/fix-invalid-escape-sequence
Browse files Browse the repository at this point in the history
Fix invalid escape sequence warning by using raw string in val.py
  • Loading branch information
mikel-brostrom authored Jan 18, 2025
2 parents 246c449 + 9319c9c commit 102ed4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracking/val.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def parse_mot_results(results: str) -> dict:
dict: A dictionary containing HOTA, MOTA, and IDF1 scores.
"""
combined_results = results.split('COMBINED')[2:-1]
combined_results = [float(re.findall("[-+]?(?:\d*\.*\d+)", f)[0])
combined_results = [float(re.findall(r"[-+]?(?:\d*\.*\d+)", f)[0])
for f in combined_results]

results_dict = {}
Expand Down

0 comments on commit 102ed4a

Please sign in to comment.