Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split train set into train_detect and train_track #212

Merged
merged 3 commits into from
Aug 26, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Split train set into train_track and train_detect, no modifications t…
…o train, cleanup
  • Loading branch information
holger-motional committed Aug 22, 2019
commit 22a91c20313eec3d07c35009aeb5793b12841e41
6 changes: 3 additions & 3 deletions python-sdk/nuscenes/eval/detection/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def load_gt(nusc, eval_split: str, verbose: bool = False) -> EvalBoxes:
# Only keep samples from this split.
splits = create_splits_scenes()

# Check compatibility of split with nusc versions
# Check compatibility of split with nusc_version.
version = nusc.version
if eval_split in {'train', 'val'}:
if eval_split in {'train', 'val', 'train_detect', 'train_track'}:
assert version.endswith('trainval'), \
'Error: Requested split {} which is not compatible with NuScenes version {}'.format(eval_split, version)
elif eval_split in {'mini_train', 'mini_val'}:
Expand All @@ -72,7 +72,7 @@ def load_gt(nusc, eval_split: str, verbose: bool = False) -> EvalBoxes:
.format(eval_split))

if eval_split == 'test':
# Check that you aren't trying to cheat :)
# Check that you aren't trying to cheat :).
assert len(nusc.sample_annotation) > 0, \
'Error: You are trying to evaluate on the test set but you do not have the annotations!'

Expand Down
Loading