Skip to content

Commit

Permalink
Add none check
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjoos committed Feb 8, 2024
1 parent c4f2a9e commit a0af02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracklab/wrappers/eval/trackeval_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def run(self, tracker_state):
log.info(
f"Tracking predictions saved in {self.trackeval_dataset_name} format in {pred_save_path}")

if len(tracker_state.detections_gt) == 0:
if tracker_state.detections_gt is None or len(tracker_state.detections_gt) == 0:
log.info(
f"Stopping evaluation because the current split ({self.eval_set}) has no ground truth detections.")
return
Expand Down

0 comments on commit a0af02d

Please sign in to comment.