Skip to content

Commit

Permalink
Clean ground-truth narration texts in videomae_generate_full_sent.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yukw777 committed Jan 28, 2024
1 parent fc186e9 commit 9983d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/baselines/videomae/videomae_generate_full_sent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from tqdm import tqdm
from transformers import AutoTokenizer, LlamaForCausalLM

from eilev.data.utils import generate_chunks
from eilev.data.utils import clean_narration_text, generate_chunks

parser = argparse.ArgumentParser()
parser.add_argument("prediction_file")
Expand Down Expand Up @@ -90,7 +90,7 @@
row["predicted_structured_noun"],
row["ground_truth_structured_noun"],
generated,
row["ground_truth_narration_text"],
clean_narration_text(row["ground_truth_narration_text"]),
)
if table is not None and run is not None:
run.log({"generated": table})

0 comments on commit 9983d44

Please sign in to comment.