Skip to content

Commit

Permalink
Hardcode to keep image for wild vision
Browse files Browse the repository at this point in the history
  • Loading branch information
kcz358 committed Jul 1, 2024
1 parent ed38173 commit e2990d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lmms_eval/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,12 @@ def evaluate(
# hack: remove image columns to speed avoid loading images and speed up postprocessing
# reason: doc_iterator will actually load image if it's in the doc.
docs = task.test_docs() if task.has_test_docs() else task.validation_docs()
if "d170" not in task_name and "dc100" not in task_name and "dc200" not in task_name and "llava_wilder" not in task_name and "livebench" not in task_name:
if "d170" not in task_name \
and "dc100" not in task_name \
and "dc200" not in task_name \
and "llava_wilder" not in task_name \
and "livebench" not in task_name \
and "wildvision" not in task_name:
remove_cols = []
features = docs.features
# If it is an Image instance or a Sequence of Image instance. Remove it
Expand Down

0 comments on commit e2990d0

Please sign in to comment.