Datasets:
Upload VBC visualization results
Browse files
README.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# RefCOCOg-UMD Test Partitioning
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
## Statistics for Each File
|
| 4 |
|
| 5 |
<table border="1" style="border-collapse: collapse;">
|
|
@@ -156,5 +208,27 @@
|
|
| 156 |
<td>42.79</td>
|
| 157 |
<td>1,508</td>
|
| 158 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-segmentation
|
| 5 |
+
- visual-question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- referring-expression-segmentation
|
| 10 |
+
- visual-grounding
|
| 11 |
+
- refcocog
|
| 12 |
+
- fine-grained-evaluation
|
| 13 |
+
size_categories:
|
| 14 |
+
- 1K<n<10K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
# RefCOCOg-UMD Test Partitioning
|
| 18 |
|
| 19 |
+
This dataset provides **fine-grained evaluation splits** for the RefCOCOg-UMD test set, designed for Referring Expression Comprehension (REC) tasks. Each sample is partitioned by **difficulty level** and **referential type** to enable more detailed performance analysis.
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
|
| 23 |
+
- **Total Samples:** 9,482 (by difficulty) / 19,334 (by referential type, with overlaps)
|
| 24 |
+
- **Source:** RefCOCOg-UMD test set
|
| 25 |
+
- **Format:** PyTorch `.pth` files
|
| 26 |
+
|
| 27 |
+
## Data Structure
|
| 28 |
+
|
| 29 |
+
Each `.pth` file contains a list of tuples with the following structure:
|
| 30 |
+
|
| 31 |
+
```python
|
| 32 |
+
import torch
|
| 33 |
+
|
| 34 |
+
data = torch.load("Easy.pth")
|
| 35 |
+
for item in data:
|
| 36 |
+
img_name, hw_dict, bbox, phrase, obj_mask = item
|
| 37 |
+
# img_name: str - Image filename
|
| 38 |
+
# hw_dict: dict - Height and width info {"height": int, "width": int}
|
| 39 |
+
# bbox: list - Bounding box [x1, y1, x2, y2]
|
| 40 |
+
# phrase: str - Referring expression text
|
| 41 |
+
# obj_mask: tensor/array - Object segmentation mask
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## File Organization
|
| 45 |
+
|
| 46 |
+
### By Difficulty Level
|
| 47 |
+
- `Easy.pth` - Simple referring expressions (4,109 samples)
|
| 48 |
+
- `Medium.pth` - Moderate complexity (4,517 samples)
|
| 49 |
+
- `Hard.pth` - Complex expressions (856 samples)
|
| 50 |
+
|
| 51 |
+
### By Referential Type × Difficulty
|
| 52 |
+
- `{Type}_Easy.pth`, `{Type}_Medium.pth`, `{Type}_Hard.pth`
|
| 53 |
+
- Types: `Attribute`, `Relation`, `Logic`, `Ambiguity`, `Perspective`
|
| 54 |
+
|
| 55 |
## Statistics for Each File
|
| 56 |
|
| 57 |
<table border="1" style="border-collapse: collapse;">
|
|
|
|
| 208 |
<td>42.79</td>
|
| 209 |
<td>1,508</td>
|
| 210 |
</tr>
|
| 211 |
+
</table>
|
| 212 |
+
|
| 213 |
+
## Usage
|
| 214 |
+
|
| 215 |
+
```python
|
| 216 |
+
from huggingface_hub import hf_hub_download
|
| 217 |
+
import torch
|
| 218 |
+
|
| 219 |
+
# Download a specific file
|
| 220 |
+
file_path = hf_hub_download(
|
| 221 |
+
repo_id="marloweee/BARE_grefumd_test_partitioning",
|
| 222 |
+
filename="Easy.pth",
|
| 223 |
+
repo_type="dataset"
|
| 224 |
+
)
|
| 225 |
+
|
| 226 |
+
# Load and iterate
|
| 227 |
+
data = torch.load(file_path)
|
| 228 |
+
for img_name, hw_dict, bbox, phrase, obj_mask in data:
|
| 229 |
+
print(f"Image: {img_name}, Query: {phrase}")
|
| 230 |
+
```
|
| 231 |
+
|
| 232 |
+
## License
|
| 233 |
|
| 234 |
+
This dataset is released under the Apache 2.0 License.
|