Skip to content

Commit

Permalink
modify to exclude instances that only have 2D annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Shunsuke Miura <[email protected]>
  • Loading branch information
miursh committed Nov 23, 2023
1 parent 3c39367 commit 8e017c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perception_dataset/utils/calculate_num_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def calculate_num_points(

# connect next/prev tokens
for instance in nusc.instance:
if instance["nbr_annotations"] == 0:
logger.warning(f"instance:{instance['token']} has no 3D annotation")
continue
try:
prev_sample_data: str = annotation_table._token_to_record[
instance["first_annotation_token"]
Expand Down

0 comments on commit 8e017c0

Please sign in to comment.