Update inference_example.py
fix formatting
This commit is contained in:
1 parent
c781a8efa1
commit
0603527bb2
1 file changed
+2
-1
@@ -51,7 +51,8 @@ class DetectionsManager:
|
||||
if len(detections_all) > 0:
|
||||
detections_all.class_id = np.vectorize(
|
||||
lambda x: self.tracker_id_to_zone_id.get(x, -1)
|
||||
)(detections_all.tracker_id)
|
||||
)
|
||||
(detections_all.tracker_id)
|
||||
else:
|
||||
detections_all.class_id = np.array([], dtype=int)
|
||||
return detections_all[detections_all.class_id != -1]
|
||||
|
||||
Reference in new issue
Block a user