Skip to content

Commit 95a122d

Browse files
committed
[wwb]Take prompts from different categories for def dataset for VLM
1 parent b248532 commit 95a122d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/who_what_benchmark/whowhatbench/visualtext_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def prepare_default_data(num_samples=None):
2525
set_seed(42)
2626
default_dataset = datasets.load_dataset(
2727
DATASET_NAME, split="test", streaming=True
28-
).take(NUM_SAMPLES)
28+
).shuffle(42).take(NUM_SAMPLES)
2929
return default_dataset.map(
3030
lambda x: preprocess_fn(x), remove_columns=default_dataset.column_names
3131
)

0 commit comments

Comments
 (0)