Skip to content

Commit

Permalink
Explicit warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjoos committed Feb 13, 2024
1 parent decdbec commit 2828c49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tracklab/wrappers/datasets/soccernet/soccernet_game_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def __init__(self,
if os.path.exists(self.dataset_path / split):
sets[split] = load_set(self.dataset_path / split, nvid, vids_dict.get(split, []))
else:
log.warning(f"Warning: The '{split}' set does not exist in the SoccerNetGS dataset at '{self.dataset_path}'")
log.warning(f"Warning: The '{split}' set does not exist in the SoccerNetGS dataset at '{self.dataset_path}'."
f"Please check the path or download the dataset following the instructions here: https://github.com/soccerNet/sn-gamestate#manual-downloading-of-soccernet-gamestate")

# We pass 'nvid=-1', 'vids_dict=None' because video subsampling is already done in the load_set function
super().__init__(dataset_path, sets, nvid=-1, vids_dict=None, *args, **kwargs)
Expand Down

0 comments on commit 2828c49

Please sign in to comment.