Skip to content

Commit cd87f61

Browse files
committed
fix typos
1 parent 9819e70 commit cd87f61

8 files changed

Lines changed: 12 additions & 20 deletions

lmms_eval/tasks/video-tt/gpt_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def parse_score(review):
124124
return ["no", 0]
125125

126126

127-
def gpt_score_proccess(doc, result):
127+
def gpt_score_process(doc, result):
128128
"""
129129
Args:
130130
doc: a instance of the eval dataset

lmms_eval/tasks/video-tt/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
import datetime
2-
import json
31
import os
42
import re
53
import sys
6-
from collections import defaultdict
74
from pathlib import Path
8-
from typing import Dict, List, Optional, Union
95

10-
import cv2
11-
import numpy as np
126
import yaml
137
from loguru import logger as eval_logger
148

15-
from lmms_eval.tasks._task_utils.file_utils import generate_submission_file
16-
179
CATEGORIES = [
1810
"Objective Causality",
1911
"Objective Causality (Videography Phenomenon & Illusion)",

lmms_eval/tasks/video-tt/videott_all.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation_kwargs:
1313
num_beams: 1
1414
do_sample: false
1515
# The return value of process_results will be used by metrics
16-
process_results: !function gpt_utils.gpt_score_proccess
16+
process_results: !function gpt_utils.gpt_score_process
1717
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results
1818
metric_list:
1919
- metric: videott_open_ended_score

lmms_eval/tasks/video-tt/videott_all_audio.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation_kwargs:
1313
num_beams: 1
1414
do_sample: false
1515
# The return value of process_results will be used by metrics
16-
process_results: !function gpt_utils.gpt_score_proccess
16+
process_results: !function gpt_utils.gpt_score_process
1717
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results
1818
metric_list:
1919
- metric: videott_open_ended_score

lmms_eval/tasks/video-tt/videott_correct_leading_oe.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation_kwargs:
1313
num_beams: 1
1414
do_sample: false
1515
# The return value of process_results will be used by metrics
16-
process_results: !function gpt_utils.gpt_score_proccess
16+
process_results: !function gpt_utils.gpt_score_process
1717
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results
1818
metric_list:
1919
- metric: videott_open_ended_score
@@ -25,7 +25,7 @@ lmms_eval_specific_kwargs:
2525
post_prompt: ""
2626
gpt4v:
2727
pre_prompt: ""
28-
post_prompt: "Answer the question with A, B, C, or D."
28+
post_prompt: ""
2929
llava_vid:
3030
pre_prompt: ""
3131
post_prompt: ""

lmms_eval/tasks/video-tt/videott_no_leading_oe.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation_kwargs:
1313
num_beams: 1
1414
do_sample: false
1515
# The return value of process_results will be used by metrics
16-
process_results: !function gpt_utils.gpt_score_proccess
16+
process_results: !function gpt_utils.gpt_score_process
1717
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results
1818
metric_list:
1919
- metric: videott_open_ended_score
@@ -25,7 +25,7 @@ lmms_eval_specific_kwargs:
2525
post_prompt: ""
2626
gpt4v:
2727
pre_prompt: ""
28-
post_prompt: "Answer the question with A, B, C, or D."
28+
post_prompt: ""
2929
llava_vid:
3030
pre_prompt: ""
3131
post_prompt: ""

lmms_eval/tasks/video-tt/videott_paraphrase_oe.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include: _default_template.yaml
22

3-
task: videott_paraphrased_oe
3+
task: videott_paraphrase_oe
44
test_split: test_paraphrased_oe
55
output_type: generate_until
66
doc_to_visual: !function utils.videott_doc_to_visual
@@ -13,7 +13,7 @@ generation_kwargs:
1313
num_beams: 1
1414
do_sample: false
1515
# The return value of process_results will be used by metrics
16-
process_results: !function gpt_utils.gpt_score_proccess
16+
process_results: !function gpt_utils.gpt_score_process
1717
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results
1818
metric_list:
1919
- metric: videott_open_ended_score
@@ -25,7 +25,7 @@ lmms_eval_specific_kwargs:
2525
post_prompt: ""
2626
gpt4v:
2727
pre_prompt: ""
28-
post_prompt: "Answer the question with A, B, C, or D."
28+
post_prompt: ""
2929
llava_vid:
3030
pre_prompt: ""
3131
post_prompt: ""

lmms_eval/tasks/video-tt/videott_wrong_leading_oe.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation_kwargs:
1313
num_beams: 1
1414
do_sample: false
1515
# The return value of process_results will be used by metrics
16-
process_results: !function gpt_utils.gpt_score_proccess
16+
process_results: !function gpt_utils.gpt_score_process
1717
# Note that the metric name can be either a registed metric function (such as the case for GQA) or a key name returned by process_results
1818
metric_list:
1919
- metric: videott_open_ended_score
@@ -25,7 +25,7 @@ lmms_eval_specific_kwargs:
2525
post_prompt: ""
2626
gpt4v:
2727
pre_prompt: ""
28-
post_prompt: "Answer the question with A, B, C, or D."
28+
post_prompt: ""
2929
llava_vid:
3030
pre_prompt: ""
3131
post_prompt: ""

0 commit comments

Comments
 (0)