fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot]
2024-01-30 10:54:00 +00:00
parent 1e482e172f
commit 6c98e211e5
@@ -50,7 +50,8 @@ class DetectionsManager:
self.counts[zone_out_id][zone_in_id].add(tracker_id)
if len(detections_all) > 0:
detections_all.class_id = np.vectorize(
lambda x: self.tracker_id_to_zone_id.get(x, -1))
lambda x: self.tracker_id_to_zone_id.get(x, -1)
)
(detections_all.tracker_id)
else:
detections_all.class_id = np.array([], dtype=int)