File size: 9,528 Bytes
90afcf2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | # InfoSeek Data Download
This document collects ready-to-run scripts for downloading the InfoSeek dataset into:
`/workspace/xiaobin/RL_dataset/data`
It covers:
- InfoSeek annotations
- InfoSeek KB mapping files
- InfoSeek human set
- Wiki6M text files
- OVEN image snapshot on Hugging Face
- OVEN original-source image download workflow
InfoSeek images are derived from OVEN, so image download is handled through the OVEN release pipeline.
## 1. Recommended Directory Layout
```bash
mkdir -p /workspace/xiaobin/RL_dataset/data/infoseek
mkdir -p /workspace/xiaobin/RL_dataset/data/oven_hf
mkdir -p /workspace/xiaobin/RL_dataset/data/oven_source
```
Suggested usage:
- `/workspace/xiaobin/RL_dataset/data/infoseek`: InfoSeek jsonl files
- `/workspace/xiaobin/RL_dataset/data/oven_hf`: Hugging Face image snapshot files
- `/workspace/xiaobin/RL_dataset/data/oven_source`: upstream OVEN repo for original-source image download
## 2. Proxy Workaround
If your shell is configured with an invalid local proxy such as `127.0.0.1:7890`, use one of these patterns.
Temporarily disable proxy for a single command:
```bash
env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY wget -c URL
```
Or disable proxy for the current shell session:
```bash
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
```
## 3. Download All InfoSeek Text Data With `wget`
This is the simplest full download for the released InfoSeek jsonl files.
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/infoseek"
mkdir -p "${TARGET_DIR}"
cd "${TARGET_DIR}"
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_train.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_val.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_test.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_train_withkb.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_val_withkb.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_human.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/Wiki6M_ver_1_0.jsonl.gz
wget -c http://storage.googleapis.com/gresearch/open-vision-language/Wiki6M_ver_1_0_title_only.jsonl
ls -lh "${TARGET_DIR}"
```
## 4. Download All InfoSeek Text Data With `curl`
Use this if `wget` is not available.
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/infoseek"
mkdir -p "${TARGET_DIR}"
cd "${TARGET_DIR}"
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_train.jsonl
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_val.jsonl
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_test.jsonl
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_train_withkb.jsonl
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_val_withkb.jsonl
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_human.jsonl
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/Wiki6M_ver_1_0.jsonl.gz
curl -L -O http://storage.googleapis.com/gresearch/open-vision-language/Wiki6M_ver_1_0_title_only.jsonl
ls -lh "${TARGET_DIR}"
```
## 5. Download Only Core InfoSeek Splits
If you only need the standard train/val/test annotations:
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/infoseek"
mkdir -p "${TARGET_DIR}"
cd "${TARGET_DIR}"
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_train.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_val.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_test.jsonl
```
## 6. Download Only KB Mapping Files
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/infoseek"
mkdir -p "${TARGET_DIR}"
cd "${TARGET_DIR}"
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_train_withkb.jsonl
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_val_withkb.jsonl
```
## 7. Download Only Human Eval Set
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/infoseek"
mkdir -p "${TARGET_DIR}"
cd "${TARGET_DIR}"
wget -c http://storage.googleapis.com/gresearch/open-vision-language/infoseek/infoseek_human.jsonl
```
## 8. Download Only Wiki6M Files
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/infoseek"
mkdir -p "${TARGET_DIR}"
cd "${TARGET_DIR}"
wget -c http://storage.googleapis.com/gresearch/open-vision-language/Wiki6M_ver_1_0.jsonl.gz
wget -c http://storage.googleapis.com/gresearch/open-vision-language/Wiki6M_ver_1_0_title_only.jsonl
```
Optional decompression:
```bash
gunzip -k /workspace/xiaobin/RL_dataset/data/infoseek/Wiki6M_ver_1_0.jsonl.gz
```
## 9. Download OVEN Image Snapshot From Hugging Face
Upstream OVEN now points image snapshot downloads to the gated dataset `ychenNLP/oven` on Hugging Face. Before downloading:
1. Open `https://huggingface.co/datasets/ychenNLP/oven`
2. Accept the dataset access conditions
3. Log in with the Hugging Face CLI
Install the CLI if needed:
```bash
python -m pip install -U "huggingface_hub[cli]"
```
Login:
```bash
hf auth login
```
Download the image snapshot and mapping file into `/workspace/xiaobin/RL_dataset/data/oven_hf`:
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/oven_hf"
mkdir -p "${TARGET_DIR}"
hf download ychenNLP/oven \
--repo-type dataset \
--local-dir "${TARGET_DIR}" \
--include "shard*.tar" \
--include "all_wikipedia_images.tar" \
--include "ovenid2impath.csv"
```
Extract the snapshot tar files:
```bash
#!/usr/bin/env bash
set -euo pipefail
HF_DIR="/workspace/xiaobin/RL_dataset/data/oven_hf"
IMG_DIR="/workspace/xiaobin/RL_dataset/data/infoseek/images"
mkdir -p "${IMG_DIR}"
for f in "${HF_DIR}"/shard*.tar; do
tar -xf "${f}" -C "${IMG_DIR}"
done
tar -xf "${HF_DIR}/all_wikipedia_images.tar" -C "${IMG_DIR}"
```
Notes:
- Hugging Face file listing shows `shard01.tar` to `shard08.tar` plus `all_wikipedia_images.tar`
- The compressed download is very large, roughly 293 GB based on the published file sizes
- You need additional free space for extraction
## 10. Download OVEN Images From Original Sources
This follows the upstream `oven_eval/image_downloads` workflow.
### 10.1 Clone the Upstream Repo
```bash
git clone https://github.com/edchengg/oven_eval /workspace/xiaobin/RL_dataset/data/oven_source/oven_eval
```
### 10.2 Run All Source Download Scripts
The upstream image download directory contains these scripts:
- `download_aircraft.sh`
- `download_car196.sh`
- `download_coco.sh`
- `download_food101.sh`
- `download_gldv2.sh`
- `download_imagenet.sh`
- `download_inat.sh`
- `download_oxfordflower.sh`
- `download_sports100.sh`
- `download_sun397.sh`
- `download_textvqa.sh`
- `download_v7w.sh`
- `download_vg.sh`
Run them one by one:
```bash
#!/usr/bin/env bash
set -euo pipefail
cd /workspace/xiaobin/RL_dataset/data/oven_source/oven_eval/image_downloads
bash download_aircraft.sh
bash download_car196.sh
bash download_coco.sh
bash download_food101.sh
bash download_gldv2.sh
bash download_imagenet.sh
bash download_inat.sh
bash download_oxfordflower.sh
bash download_sports100.sh
bash download_sun397.sh
bash download_textvqa.sh
bash download_v7w.sh
bash download_vg.sh
```
Or run them in a loop:
```bash
#!/usr/bin/env bash
set -euo pipefail
cd /workspace/xiaobin/RL_dataset/data/oven_source/oven_eval/image_downloads
for script in download_*.sh; do
bash "${script}"
done
```
### 10.3 Download `ovenid2impath.csv`
You need `ovenid2impath.csv` for the merge step. The current recommended source is the Hugging Face dataset:
```bash
#!/usr/bin/env bash
set -euo pipefail
TARGET_DIR="/workspace/xiaobin/RL_dataset/data/oven_hf"
mkdir -p "${TARGET_DIR}"
hf download ychenNLP/oven \
--repo-type dataset \
--local-dir "${TARGET_DIR}" \
--include "ovenid2impath.csv"
```
### 10.4 Merge Into the Final OVEN Image Layout
Run the upstream merge script after all downloads finish:
```bash
cd /workspace/xiaobin/RL_dataset/data/oven_source/oven_eval/image_downloads
python merge_oven_images.py
```
The upstream documentation states that `merge_oven_images.py` should be run after all image download scripts complete and after `ovenid2impath.csv` is available.
## 11. Verify the Downloaded Files
Check text files:
```bash
ls -lh /workspace/xiaobin/RL_dataset/data/infoseek
```
Check Hugging Face snapshot files:
```bash
ls -lh /workspace/xiaobin/RL_dataset/data/oven_hf
```
Check extracted images:
```bash
find /workspace/xiaobin/RL_dataset/data/infoseek/images -type f | wc -l
```
## 12. Upstream References
- InfoSeek release page: `https://github.com/open-vision-language/infoseek`
- OVEN image download page: `https://github.com/edchengg/oven_eval/tree/main/image_downloads`
- Hugging Face OVEN dataset: `https://huggingface.co/datasets/ychenNLP/oven`
- Hugging Face CLI download docs: `https://huggingface.co/docs/huggingface_hub/guides/cli`
|