Skip to content

Commit

Permalink
Merge pull request #1084 from mikel-brostrom/fix-per-class-tracking
Browse files Browse the repository at this point in the history
Fix per class tracking
  • Loading branch information
mikel-brostrom authored Aug 17, 2023
2 parents c611369 + 28d6a1c commit 122053a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boxmot/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def wrapper(*args, **kwargs):
# get tracks that are both active and in the current detections
relevant_classes = active_classes.union(detected_classes)

mc_dets = np.empty(shape=(0, 7))
mc_dets = np.empty(shape=(0, 8))
for class_id in relevant_classes:
modified_args[0] = np.array(
dets_dict.get(int(class_id), np.empty((0, 6)))
Expand All @@ -56,7 +56,6 @@ def wrapper(*args, **kwargs):
logger.debug(f"Per class updates output: {mc_dets.shape}")
else:
mc_dets = self.update(instance, dets, im)

return mc_dets

return wrapper

0 comments on commit 122053a

Please sign in to comment.