Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,17 +66,38 @@ The benchmark assesses models using a specialized level-aware scoring mechanism
|
|
| 66 |
|
| 67 |
## ๐ How to Use
|
| 68 |
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
```python
|
| 72 |
from datasets import load_dataset
|
| 73 |
|
| 74 |
-
# Load the dataset
|
| 75 |
-
#
|
| 76 |
-
dataset = load_dataset(
|
| 77 |
-
|
| 78 |
-
#
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
```
|
| 81 |
|
| 82 |
---
|
|
|
|
| 66 |
|
| 67 |
## ๐ How to Use
|
| 68 |
|
| 69 |
+
MMTR-Bench is an evaluation-only benchmark designed to test Multimodal LLMs. There is no training set.
|
| 70 |
+
|
| 71 |
+
The dataset annotations (including mask bounding boxes, ground truth answers, and image paths) are stored in the metadata file, and the images are located in the `images/` directory.
|
| 72 |
+
|
| 73 |
+
### 1. Installation
|
| 74 |
+
Ensure you have the required libraries installed:
|
| 75 |
+
```bash
|
| 76 |
+
pip install datasets
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
### 2. Loading the Benchmark
|
| 80 |
+
*(Note: If this repository is currently private for double-blind review, make sure to authenticate using your Hugging Face token.)*
|
| 81 |
|
| 82 |
```python
|
| 83 |
from datasets import load_dataset
|
| 84 |
|
| 85 |
+
# Load the benchmark dataset
|
| 86 |
+
# Note: Hugging Face maps single data files to the 'train' split by default.
|
| 87 |
+
dataset = load_dataset(
|
| 88 |
+
"MMTR-Bench/MMTR_Bench_Dateset",
|
| 89 |
+
data_files="metadata.json" # or metadata.jsonl
|
| 90 |
+
)
|
| 91 |
+
benchmark_data = dataset["train"]
|
| 92 |
+
|
| 93 |
+
# Inspect the first evaluation sample
|
| 94 |
+
sample = benchmark_data[0]
|
| 95 |
+
|
| 96 |
+
print(f"Sample ID: {sample['sample_id']}")
|
| 97 |
+
print(f"Difficulty Level: L{sample['level']}")
|
| 98 |
+
print(f"Ground Truth Answer: {sample['answer']}")
|
| 99 |
+
print(f"Mask Bounding Box: {sample['bbox']}")
|
| 100 |
+
print(f"Target Image: {sample['image_path']}")
|
| 101 |
```
|
| 102 |
|
| 103 |
---
|