Skip to content

Commit

Permalink
fix(annotated_t4_to_deepen): fix file_id output
Browse files Browse the repository at this point in the history
Signed-off-by: kminoda <[email protected]>
  • Loading branch information
kminoda committed Dec 15, 2023
1 parent 14d3e31 commit d72cdef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions perception_dataset/deepen/annotated_t4_to_deepen_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ def _convert_one_scene(self, input_dir: str, scene_name: str):

sample_data_record = nusc.get("sample_data", sample_record["data"][sensor])
file_id = osp.basename(sample_data_record["filename"]).replace(".pcd.bin", ".pcd")

# Original T4 format names the file_id as 000000.pcd.bin for example.
# We need to convert it to 0.pcd in this case.
file_id = str(int(file_id.split('.')[0])) + '.pcd'

label_category_id = self._label_converter.convert_label(category_record["name"])

attributes_records = [
Expand Down

0 comments on commit d72cdef

Please sign in to comment.