agianbig commited on
Commit
99b15b6
·
verified ·
1 Parent(s): 65eb34b

Card: parquet-based images + extract-for-training snippet

Browse files
Files changed (1) hide show
  1. README.md +24 -15
README.md CHANGED
@@ -88,15 +88,14 @@ Training data for **Ablate-to-Validate: Are Vision-Language Models Really Using
88
  ([code](https://github.com/tjazhang/ablate_to_validate) · [project page](https://tjazhang.github.io/ablate_to_validate/) · [arXiv](https://arxiv.org/abs/2605.21642)).
89
 
90
  Each example shows an ADE20K image with **3, 4, or 5 labeled points** circled and asks **which point is
91
- closest to the camera**. It is used to train the LLaVA and Qwen2.5-VL relative-depth models in the paper.
92
 
93
  - **Examples:** 19,279 — 3-point: 6,736 · 4-point: 6,562 · 5-point: 5,981
94
- - **Image resolution:** 336 × 336
95
- - **Source imagery:** ADE20K (train split)
96
 
97
  ## Browse / load (parquet, default config)
98
 
99
- The default config powers the dataset viewer and loads directly:
100
 
101
  ```python
102
  from datasets import load_dataset
@@ -105,26 +104,36 @@ ds[0]["image"] # PIL.Image (336x336)
105
  ds[0]["answer_letter"] # e.g. "C"
106
  ```
107
 
108
- Columns: `id`, `image`, `question`, `answer`, `answer_letter`, `answer_type`, `num_points`,
109
- `point_labels`, per-point `point_{A..E}_x` / `point_{A..E}_y` (pixel coords) and
110
- `point_{A..E}_depth` (relative depth).
111
 
112
- ## Finetuning files (LLaVA / Qwen conversation format)
 
113
 
114
- For training, use the conversation-format JSON plus the image folder. Image fields are **basenames**
115
- relative to `images/`:
 
 
 
 
 
 
 
 
 
 
 
116
 
117
  ```bash
118
  hf download agianbig/mixed_depth --repo-type dataset --local-dir mixed_depth
119
- # then, e.g.:
120
- # --data_path mixed_depth/mixed_depth_long.json # or mixed_depth_short.json
121
  # --image_folder mixed_depth/images
122
  ```
123
 
124
- - `mixed_depth_long.json` — long chain-of-thought answers (point coordinates + depth reasoning + final letter)
125
  - `mixed_depth_short.json` — short answers (final letter only, e.g. `(C)`)
126
- - `images/` — 19,279 JPGs, referenced by basename in the JSON
127
 
128
  ## License
129
 
130
- Released under MIT. Imagery is derived from ADE20K; please also observe the ADE20K terms.
 
88
  ([code](https://github.com/tjazhang/ablate_to_validate) · [project page](https://tjazhang.github.io/ablate_to_validate/) · [arXiv](https://arxiv.org/abs/2605.21642)).
89
 
90
  Each example shows an ADE20K image with **3, 4, or 5 labeled points** circled and asks **which point is
91
+ closest to the camera**. Used to train the LLaVA and Qwen2.5-VL relative-depth models in the paper.
92
 
93
  - **Examples:** 19,279 — 3-point: 6,736 · 4-point: 6,562 · 5-point: 5,981
94
+ - **Image resolution:** 336 × 336 · **Source imagery:** ADE20K (train split)
 
95
 
96
  ## Browse / load (parquet, default config)
97
 
98
+ All 19,279 images live (one per row, losslessly) in the parquet under `data/`, which also powers the viewer:
99
 
100
  ```python
101
  from datasets import load_dataset
 
104
  ds[0]["answer_letter"] # e.g. "C"
105
  ```
106
 
107
+ Columns: `id`, `image`, `image_filename`, `question`, `answer`, `answer_letter`, `answer_type`,
108
+ `num_points`, `point_labels`, per-point `point_{A..E}_x` / `_y` (pixel coords) and `point_{A..E}_depth`.
 
109
 
110
+ > **Why no `images/` folder?** The Hugging Face Hub caps any directory at 10,000 files, and there are
111
+ > 19,279 images. They are therefore distributed inside the parquet rather than as a flat folder.
112
 
113
+ ## Finetuning (LLaVA / Qwen conversation format)
114
+
115
+ The conversation-format JSONs reference images by **basename**, so first extract the images to a local
116
+ `images/` folder from the parquet, then train:
117
+
118
+ ```python
119
+ import os
120
+ from datasets import load_dataset
121
+ ds = load_dataset("agianbig/mixed_depth", split="train")
122
+ os.makedirs("images", exist_ok=True)
123
+ for r in ds:
124
+ r["image"].save(os.path.join("images", os.path.basename(r["image_filename"])))
125
+ ```
126
 
127
  ```bash
128
  hf download agianbig/mixed_depth --repo-type dataset --local-dir mixed_depth
129
+ # run the snippet above (cwd = mixed_depth) to create mixed_depth/images/, then:
130
+ # --data_path mixed_depth/mixed_depth_long.json # CoT answers, or mixed_depth_short.json
131
  # --image_folder mixed_depth/images
132
  ```
133
 
134
+ - `mixed_depth_long.json` — long chain-of-thought answers (coords + depth reasoning + final letter)
135
  - `mixed_depth_short.json` — short answers (final letter only, e.g. `(C)`)
 
136
 
137
  ## License
138
 
139
+ Released under MIT. Imagery derived from ADE20K; please also observe the ADE20K terms.