Update README.md
Browse files
README.md
CHANGED
|
@@ -53,7 +53,7 @@ configs:
|
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
-
<h1 style="display: flex; align-items: center; justify-content: center; font-size: 1.
|
| 57 |
|
| 58 |
|
| 59 |
<img src="https://huggingface.co/datasets/BAAI/RefSpatial-Bench/resolve/main/assets/logo.png" style="height: 60px; flex-shrink: 0;">
|
|
@@ -202,7 +202,7 @@ You can load the dataset easily using the `datasets` library:
|
|
| 202 |
```python
|
| 203 |
from datasets import load_dataset
|
| 204 |
|
| 205 |
-
# Load the entire dataset (all splits: location, placement
|
| 206 |
# This returns a DatasetDict
|
| 207 |
dataset_dict = load_dataset("JingkunAn/RefSpatial-Expand-Bench")
|
| 208 |
|
|
@@ -234,7 +234,7 @@ print(f"Reasoning Steps (from HF Dataset): {sample['step']}")
|
|
| 234 |
|
| 235 |
If you are working with the raw data format (e.g., after cloning the repository or downloading the raw files), you can load the questions from the `question.json` file for each split and then load the images and masks using a library like Pillow (PIL).
|
| 236 |
|
| 237 |
-
This example assumes you have the `location
|
| 238 |
|
| 239 |
```python
|
| 240 |
import json
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
+
<h1 style="display: flex; align-items: center; justify-content: center; font-size: 1.75em; font-weight: 600;">
|
| 57 |
|
| 58 |
|
| 59 |
<img src="https://huggingface.co/datasets/BAAI/RefSpatial-Bench/resolve/main/assets/logo.png" style="height: 60px; flex-shrink: 0;">
|
|
|
|
| 202 |
```python
|
| 203 |
from datasets import load_dataset
|
| 204 |
|
| 205 |
+
# Load the entire dataset (all splits: location, placement)
|
| 206 |
# This returns a DatasetDict
|
| 207 |
dataset_dict = load_dataset("JingkunAn/RefSpatial-Expand-Bench")
|
| 208 |
|
|
|
|
| 234 |
|
| 235 |
If you are working with the raw data format (e.g., after cloning the repository or downloading the raw files), you can load the questions from the `question.json` file for each split and then load the images and masks using a library like Pillow (PIL).
|
| 236 |
|
| 237 |
+
This example assumes you have the `location` and `placement` folders (each containing `image/`, `mask/`, and `question.json`) in a known `base_data_path`.
|
| 238 |
|
| 239 |
```python
|
| 240 |
import json
|