Update README.md
Browse files
README.md
CHANGED
|
@@ -2,3 +2,42 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
viewer: false
|
| 4 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
viewer: false
|
| 4 |
---
|
| 5 |
+
|
| 6 |
+
# Dowload
|
| 7 |
+
```bash
|
| 8 |
+
wget "https://huggingface.co/datasets/Sterzhang/P-Bench-Choice/resolve/main/p-bench-qa.jsonl?download=true" -O p-bench-qa.jsonl
|
| 9 |
+
wget "https://huggingface.co/datasets/Sterzhang/P-Bench-Choice/resolve/main/P-Bench-imgs.tar.gz?download=true" -O P-Bench-imgs.tar.gz
|
| 10 |
+
mkdir P-Bench-imgs
|
| 11 |
+
tar -xzvf P-Bench-imgs.tar.gz -C P-Bench-imgs
|
| 12 |
+
```
|
| 13 |
+
## Image Folder (P-Bench-imgs)
|
| 14 |
+
```
|
| 15 |
+
P-Bench-imgs/
|
| 16 |
+
├── aug-face/
|
| 17 |
+
│ └── coco/
|
| 18 |
+
├── coco/
|
| 19 |
+
├── concat-person/
|
| 20 |
+
│ ├── 2person/
|
| 21 |
+
│ └── 3person/
|
| 22 |
+
├── crop-face/
|
| 23 |
+
│ ├── coco/
|
| 24 |
+
│ └── flickr30k/
|
| 25 |
+
└── flickr30k/
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## JSONL file (p-bench-qa.jsonl)
|
| 29 |
+
```json
|
| 30 |
+
{"image": ["crop-face/coco/000000394849/3.jpg", "coco/000000394849.jpg"], "question": "<image>\nThis photo shows Sonia.\n<image>\nAnswer the following question based on this image:\nWhat is the color of Sonia's hair?\nOptions: A. blonde.; B. dark.; C. red.; D. pink.; E. I don't know Sonia.; F. Sonia is not in this image.", "answer": "B. dark.", "type": "normal", "cnt": "5"}
|
| 31 |
+
```
|
| 32 |
+
### Field Descriptions
|
| 33 |
+
|
| 34 |
+
- **`image`**: A list of image file names used in the sample. Each `<image>` token in the question field corresponds to an image in this list in order.
|
| 35 |
+
Each element in the list is a **relative path with respect to the `P-Bench-imgs/` directory**.
|
| 36 |
+
|
| 37 |
+
- **`question`**: A multi-modal question string that includes `<image>` placeholders and natural language text.
|
| 38 |
+
|
| 39 |
+
- **`answer`**: The ground-truth answer for this question. It must match one of the options listed in the question, and follows the format `"A. xxx."`.
|
| 40 |
+
|
| 41 |
+
- **`type`**: Indicates the task type, such as `"2person"`.
|
| 42 |
+
|
| 43 |
+
- **`cnt`**: Specifies the number of people present in the image referenced by the scene image (the **last element** of the `image` list).
|