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

Cleanup of the export_2d script #179

Merged
merged 2 commits into from
Jun 28, 2019
Merged
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
Prev Previous commit
Cleanup
  • Loading branch information
holger@nutonomy.com authored and holger@nutonomy.com committed Jun 28, 2019
commit 981f0d8a9bfd3399f97b1ba9e66d8dd200626b54
4 changes: 2 additions & 2 deletions python-sdk/nuscenes/scripts/export_2d_annotations_as_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def generate_record(ann_rec: dict,
:param y1: Minimum value of the y coordinate.
:param x2: Maximum value of the x coordinate.
:param y2: Maximum value of the y coordinate.
:param sample_data_token: Sample data tolk
:param sample_data_token: Sample data token.
:param filename:The corresponding image file where the annotation is present.
:return: A sample 2D annotation record.
"""
Expand Down Expand Up @@ -181,7 +181,7 @@ def main(args):
reprojection_records = get_2d_boxes(token, args.visibilities)
reprojections.extend(reprojection_records)

# Save to a .json file
# Save to a .json file.
dest_path = os.path.join(args.dataroot, args.version)
if not os.path.exists(dest_path):
os.makedirs(dest_path)
Expand Down