Skip to content

Commit

Permalink
Merge pull request #40 from josephvanpeltkw/dev/adjust_bbn_data_script
Browse files Browse the repository at this point in the history
create parent folder if it doesn't exist
  • Loading branch information
Purg authored Nov 1, 2024
2 parents 4c25924 + e6a0bc2 commit 22866fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcn_hpl/data/utils/bbn.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def extract_bbn_video_frames(
not output_directory.is_dir()
or len(list(output_directory.iterdir())) != num_frames
):
output_directory.mkdir(exist_ok=True)
output_directory.mkdir(exist_ok=True, parents=True)
report_name = f"{video_path.parent.name}/{video_path.name}"
for i in tqdm(
range(int(num_frames)),
Expand Down Expand Up @@ -250,7 +250,7 @@ def create_truth_coco(
~/dev/darpa-ptg/angel_system/config/activity_labels/medical/m2.yaml \\
~/data/darpa-ptg/bbn_data/lab_data-working/m2_tourniquet/positive/3_tourns_122023-activity_truth.json
"""
working_directory.mkdir(exist_ok=True)
working_directory.mkdir(exist_ok=True, parents=True)

# Discover MP4 and truth text file pairs recursively.
# video_info's keys should be a type that we can sort to perform actions
Expand Down

0 comments on commit 22866fc

Please sign in to comment.