Skip to content

Commit

Permalink
squash me
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah DeFazio committed Apr 24, 2024
1 parent cf482bf commit 1deeb8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angel_system/data/medical/load_bbn_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def activity_label_fixes(task, activity_label, target):
return label, label_id


def bbn_activity_txt_to_csv(task, root_dir, output_dir):
def bbn_activity_txt_to_csv(task, root_dir, output_dir, label_version):
"""
Generate DIVE csv format activity annotations from BBN's text annotations
Expand Down Expand Up @@ -298,7 +298,7 @@ def bbn_activity_txt_to_csv(task, root_dir, output_dir):
lines = action_f.readlines()

# Create output csv
csv_fn = f"{output_dir}/{video_name}_activity_labels_v2.csv"
csv_fn = f"{output_dir}/{video_name}_activity_labels_v{label_version}.csv"
csv_f = open(csv_fn, "w")
csv_f.write(
"# 1: Detection or Track-id,2: Video or Image Identifier,3: Unique Frame Identifier,4-7: Img-bbox(TL_x,TL_y,BR_x,BR_y),8: Detection or Length Confidence,9: Target Length (0 or -1 if invalid),10-11+: Repeated Species,Confidence Pairs or Attributes\n"
Expand Down

0 comments on commit 1deeb8d

Please sign in to comment.