exiawsh commited on
Commit
fec481a
·
verified ·
1 Parent(s): 244fc72

Add final English and Chinese dataset documentation

Browse files
Files changed (2) hide show
  1. README.md +356 -0
  2. README_CN.md +338 -0
README.md ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: LocateAnything-Data
3
+ task_categories:
4
+ - object-detection
5
+ tags:
6
+ - visual-grounding
7
+ - pointing
8
+ - megatron-energon
9
+ - webdataset
10
+ - multimodal
11
+ size_categories:
12
+ - 10M<n<100M
13
+ ---
14
+
15
+ # LocateAnything-Data
16
+
17
+ [中文说明](README_CN.md) | [Hugging Face repository](https://huggingface.co/datasets/NVEagle/LocateAnything-Data)
18
+
19
+ > Official release repository:
20
+ > [`NVEagle/LocateAnything-Data`](https://huggingface.co/datasets/NVEagle/LocateAnything-Data).
21
+ > This collection does not declare a single umbrella license. Before using any
22
+ > component, consult and comply with the license and terms of its original
23
+ > upstream dataset.
24
+
25
+ LocateAnything-Data is a spatial vision-language training collection packaged
26
+ for indexed JSONL access and Megatron-Energon. It contains object detection,
27
+ visual grounding, and pointing records. It deliberately excludes VQA,
28
+ benchmark, test, validation, chat, and internal build-provenance data.
29
+
30
+ Dataset inventory:
31
+
32
+ | Item | Count |
33
+ |---|---:|
34
+ | Dataset folders | 42 |
35
+ | Annotation views | 47 |
36
+ | Training records | 10,136,648 |
37
+ | Canonical media pools | 41 |
38
+ | Referenced physical images | 9,801,026 total; 7,402,667 hosted |
39
+ | Canonical TAR shards | 926 in the source inventory; 583 hosted |
40
+
41
+ OS-Atlas is part of this unified 42-dataset release. It is not published as a
42
+ second copy or a separate media repository.
43
+
44
+ ## Media redistribution boundary
45
+
46
+ All 47 annotation views and the sanitized record-to-source-image mappings are
47
+ in release scope. Images from the following seven upstream sources are not
48
+ redistributed. Users must obtain those images from the official source and
49
+ hydrate them locally.
50
+
51
+ | Upstream source | LocateAnything dataset ID | Canonical pool ID | Records | Official access | Expected source-relative path |
52
+ |---|---|---|---:|---|---|
53
+ | CrowdHuman | `crowdhuman` | `locany--crowdhuman--train--source_image--v000001` | 15,000 | [download](https://www.crowdhuman.org/download.html) | `train/Images/<name>.jpg` |
54
+ | DeepFashion2 | `deepfashion2` | `locany--deepfashion2--train--source_image--v000001` | 191,961 | [instructions](https://github.com/switchablenorms/DeepFashion2), [request form](https://docs.google.com/forms/d/e/1FAIpQLSeIoGaFfCQILrtIZPykkr8q_h9qQ5BoTYbjvf95aXbid0v2Bw/viewform) | `train/image/000001.jpg` |
55
+ | Flickr30K | `flickr30k` | `locany--flickr30k--train--source_image--v000001` | 29,781 | [official page](https://shannon.cs.illinois.edu/DenotationGraph/data/index.html) | `flickr30k-images/<flickr_id>.jpg` |
56
+ | ImageNet | `partimagenet` | `locany--imagenet--train--source_image--v000001` | 100,000 | [download/request access](https://www.image-net.org/download.php) | `train/<wnid>/<wnid>_*.JPEG` |
57
+ | Objects365 | `object365` | `locany--object365--train--source_image--v000001` | 1,742,289 | [download and terms](https://www.objects365.org/download.html) | `images/train/patch*/objects365_v1_*.jpg` |
58
+ | SKU-110K | `sku110k` | `locany--sku110k--train--source_image--v000001` | 8,219 | [author repository](https://github.com/eg4000/SKU110K_CVPR19) | `images/train_*.jpg` |
59
+ | Unsplash | `unsplash` | `locany--unsplash--train--source_image--v000001` | 329,721 | [dataset access](https://unsplash.com/data), [dataset terms](https://github.com/unsplash/datasets/blob/master/TERMS.md) | `raw_unsplash_images/<photo_id>.jpg` |
60
+
61
+ ImageNet is a media source, not a LocateAnything dataset folder. Its images are
62
+ used by the `partimagenet` annotation view. Objects365 is the official upstream
63
+ name; `object365` is the stable LocateAnything dataset ID.
64
+
65
+ These seven sources account for 2,416,971 records, 2,398,359 physical images,
66
+ and 343 internal TAR shards. None of those TAR payloads are part of the public
67
+ repository. The remaining hosted subset contains 35 dataset folders,
68
+ 7,719,677 records, 34 media pools, 7,402,667 physical images, and 583 TAR
69
+ shards. Every hosted TAR has exactly one repository path.
70
+
71
+ This repository is not a mirror of the seven upstream datasets and grants no
72
+ rights to their media. Obtain the media independently, accept the terms in
73
+ effect at download time, and preserve filenames and directory layout. The
74
+ hydration tooling does not bypass registration, request forms, passwords, or
75
+ access controls.
76
+
77
+ Additional source-specific notes:
78
+
79
+ - CrowdHuman requires the training image archives referenced by the mapping.
80
+ Its official page states that the images must not be redistributed.
81
+ - DeepFashion2 requires a per-user access request and a password for the
82
+ archives. The released mapping references `train/image`.
83
+ - Flickr30K images remain subject to Flickr's terms. The official project also
84
+ offers a publicly distributable links-and-captions version.
85
+ - The ImageNet view uses a 100,000-image subset of the ILSVRC-style training
86
+ layout. Do not flatten synset directories.
87
+ - Objects365 users should preserve the V1/V2 package filenames and use the
88
+ official annotation `file_name` values rather than renaming images.
89
+ - SKU-110K users should preserve the extracted image and CSV layout.
90
+ - The Unsplash Lite release is not necessarily sufficient for this 329,721
91
+ image mapping. Obtain the matching authorized release and require SHA-256
92
+ verification; do not substitute similarly named images.
93
+
94
+ ## Repository layout
95
+
96
+ The repository keeps one canonical path for every payload:
97
+
98
+ ```text
99
+ LocateAnything-Data/
100
+ ├── .gitattributes
101
+ ├── README.md
102
+ ├── README_CN.md
103
+ ├── release-policy.json
104
+ ├── metadataset.yaml # immediately usable hosted subset
105
+ ├── metadataset-full.yaml # all 42 datasets after local hydration
106
+ ├── manifests/
107
+ │ ├── release.json
108
+ │ ├── files.jsonl
109
+ │ ├── datasets.jsonl
110
+ │ ├── views.jsonl
111
+ │ ├── media-pools.jsonl
112
+ │ └── restricted-media.json
113
+ ├── datasets/
114
+ │ └── <dataset_id>/
115
+ │ ├── metadataset.yaml
116
+ │ └── views/
117
+ │ └── <view_id>/
118
+ │ ├── metadataset.yaml
119
+ │ ├── records.jsonl
120
+ │ └── records.jsonl.idx
121
+ ├── media/
122
+ │ └── <pool_id>/
123
+ │ ├── availability.json
124
+ │ ├── .nv-meta/ # present only for hosted media
125
+ │ └── shards/ # present only for hosted media
126
+ │ ├── image-NNNNNNNN.tar
127
+ │ └── image-NNNNNNNN.tar.idx
128
+ ├── mappings/
129
+ │ ├── media/<pool_id>/part-NNNNN.parquet
130
+ │ └── views/<dataset_id>/<view_id>/part-NNNNN.parquet
131
+ ├── schemas/
132
+ │ ├── media-source-map.schema.json
133
+ │ └── view-source-map.schema.json
134
+ ├── examples/
135
+ │ ├── read_indexed_jsonl.py
136
+ │ └── read_energon.py
137
+ └── tools/
138
+ ├── hydrate_restricted_media.py
139
+ └── verify_release.py
140
+ ```
141
+
142
+ There is intentionally no `datasets/<dataset_id>/media/` tree. From
143
+ `datasets/<dataset_id>/views/<view_id>/metadataset.yaml`, every auxiliary media
144
+ path must be exactly `../../../../media/<pool_id>`. The seven external pools
145
+ contain only `availability.json` until a user hydrates them locally.
146
+
147
+ `metadataset.yaml` blends the 35 datasets whose media is hosted on Hugging
148
+ Face. `metadataset-full.yaml` blends all 42 datasets and must fail fast until
149
+ the seven external pools have been hydrated and validated.
150
+
151
+ ## Annotation format
152
+
153
+ Annotations remain human-previewable JSON Lines. One line is one independent
154
+ training record. The following is an abridged schema example:
155
+
156
+ ```json
157
+ {
158
+ "_source": {
159
+ "schema": "eagle-energon.source-record/v1",
160
+ "dataset_id": "crowdhuman",
161
+ "view_id": "locate_anything_crowdhuman_crowdhuman",
162
+ "sample_id": "crowdhuman:locate_anything_crowdhuman_crowdhuman:file:0009:row:000000000000",
163
+ "source_annotation": "annotations/CrowdHuman/CrowdHuman.jsonl",
164
+ "source_file_index": 9,
165
+ "source_row": 0,
166
+ "source_record_sha256": "<sha256>"
167
+ },
168
+ "image": {
169
+ "kind": "image",
170
+ "source": "media_00",
171
+ "path": "m/000000000082.jpg"
172
+ },
173
+ "query": {
174
+ "Person": [[1, 410, 168, 1000]]
175
+ },
176
+ "task_type": "detection_grounding"
177
+ }
178
+ ```
179
+
180
+ `query` values are numeric points `[x, y]` or boxes
181
+ `[x1, y1, x2, y2]`. The reader does not rescale or rewrite them.
182
+ `image.source` selects the view's Energon auxiliary pool and `image.path` is
183
+ the exact TAR member name. Never infer a source filename from the packed
184
+ member name.
185
+
186
+ `records.jsonl.idx` is a little-endian uint64 array with `N + 1` byte offsets
187
+ for `N` records. Row `i` occupies
188
+ `[offset[i], offset[i + 1])`, enabling O(1) indexed record access.
189
+
190
+ Preview records:
191
+
192
+ ```bash
193
+ sed -n '1,3p' \
194
+ datasets/object365/views/locate_anything_object365_object365/records.jsonl \
195
+ | jq -c .
196
+ ```
197
+
198
+ Read one indexed row without loading the file:
199
+
200
+ ```bash
201
+ python examples/read_indexed_jsonl.py \
202
+ datasets/object365/views/locate_anything_object365_object365/records.jsonl \
203
+ 100
204
+ ```
205
+
206
+ ## Public source-image mapping
207
+
208
+ The public repository does not contain the internal SQLite mapping databases,
209
+ which include absolute paths and filesystem evidence. Instead, it contains two
210
+ normalized, Zstandard-compressed Parquet relations:
211
+
212
+ 1. `mappings/media/<pool_id>/...` has one row per upstream source-image alias.
213
+ It maps the original dataset-relative filename/path and SHA-256 to a
214
+ canonical `member_name` and content SHA-256.
215
+ 2. `mappings/views/<dataset_id>/<view_id>/...` has one row per record-media
216
+ occurrence. It maps the record lineage and JSON pointer to the exact
217
+ pool-local `source_id` and canonical member.
218
+
219
+ The second relation is required because byte-identical images can have multiple
220
+ upstream filenames. Joining only on `member_name` would be ambiguous. The
221
+ authoritative join is `(pool_id, source_id)`.
222
+ `source_snapshot_id` identifies the conversion/source-manifest snapshot; it
223
+ must not be interpreted as an upstream dataset release name.
224
+
225
+ Example: recover the exact original source image for record row 12,911:
226
+
227
+ ```sql
228
+ INSTALL parquet;
229
+ LOAD parquet;
230
+
231
+ SELECT
232
+ v.row_id,
233
+ v.source_sample_id,
234
+ m.source_media_name,
235
+ m.source_relative_path,
236
+ m.source_sha256,
237
+ m.member_name
238
+ FROM read_parquet(
239
+ 'mappings/views/crowdhuman/locate_anything_crowdhuman_crowdhuman/*.parquet'
240
+ ) AS v
241
+ JOIN read_parquet(
242
+ 'mappings/media/locany--crowdhuman--train--source_image--v000001/*.parquet'
243
+ ) AS m
244
+ USING (pool_id, source_id)
245
+ WHERE v.row_id = 12911;
246
+ ```
247
+
248
+ Reverse lookup from an upstream path to all LocateAnything records:
249
+
250
+ ```sql
251
+ SELECT v.dataset_id, v.view_id, v.row_id, v.source_sample_id
252
+ FROM read_parquet(
253
+ 'mappings/media/locany--crowdhuman--train--source_image--v000001/*.parquet'
254
+ ) AS m
255
+ JOIN read_parquet(
256
+ 'mappings/views/crowdhuman/locate_anything_crowdhuman_crowdhuman/*.parquet'
257
+ ) AS v
258
+ USING (pool_id, source_id)
259
+ WHERE m.source_relative_path =
260
+ 'train/Images/273271,1017c000ac1360b7.jpg';
261
+ ```
262
+
263
+ The public mapping preserves original source filenames, not LMDB keys or
264
+ packed member names. It never contains `source_absolute_path`, internal
265
+ annotation paths, Lustre paths, usernames, inode/device metadata, symlink
266
+ targets, access tokens, cookies, or signed URLs. See the schemas under
267
+ `schemas/`.
268
+
269
+ ## Reading with Megatron-Energon
270
+
271
+ The storage contract targets `megatron-energon==7.4.0`. Use:
272
+
273
+ - `metadataset.yaml` for the immediately readable hosted subset;
274
+ - `metadataset-full.yaml` after all seven external pools are hydrated;
275
+ - `datasets/<dataset_id>/metadataset.yaml` for one dataset; or
276
+ - a view-level `metadataset.yaml` for debugging.
277
+
278
+ The format supports random indexed JSONL rows, indexed uncompressed TAR
279
+ samples, multiple workers, rank-aware partitioning, and stream packing. For an
280
+ exact without-replacement sample permutation, use one indexed row per
281
+ Energon slice (`max_samples_per_sequence=1`), one epoch shuffle multiplier,
282
+ and no second shuffle buffer. Packing should happen after sample
283
+ randomization.
284
+
285
+ The repository provides a small task encoder and runnable loader in
286
+ `examples/read_energon.py`:
287
+
288
+ ```bash
289
+ python examples/read_energon.py metadataset.yaml --workers 8 --samples 3
290
+ ```
291
+
292
+ A missing external pool is an error: training code must not silently skip
293
+ records.
294
+
295
+ ## Hydrating the seven external media pools
296
+
297
+ The hydrator uses the public mapping as the sole file list:
298
+
299
+ ```bash
300
+ python tools/hydrate_restricted_media.py \
301
+ --repo-root /data/LocateAnything-Data \
302
+ --dataset crowdhuman \
303
+ --source-root /data/upstream/CrowdHuman
304
+ ```
305
+
306
+ For every mapped source image it:
307
+
308
+ 1. resolve the exact `source_relative_path`, never basename-guess;
309
+ 2. verify byte length and SHA-256;
310
+ 3. preserve the stable `member_name`;
311
+ 4. content-deduplicate within the canonical pool;
312
+ 5. write approximately 4 GiB uncompressed TAR shards;
313
+ 6. build `.tar.idx` and official Energon `.nv-meta`;
314
+ 7. verify every annotation reference; and
315
+ 8. write a local receipt.
316
+
317
+ Hydrated media remains local and must never be pushed back to the Hugging Face
318
+ repository.
319
+
320
+ ## Canonical storage and deduplication
321
+
322
+ - `NVEagle/LocateAnything-Data` is the collection's single canonical Hugging
323
+ Face dataset repository.
324
+ - Every canonical TAR has exactly one
325
+ `media/<pool_id>/shards/` repository path.
326
+ - Dataset-local media projections are not part of the repository.
327
+ - OS-Atlas belongs to the unified catalog and has no separate copy.
328
+ - `manifests/files.jsonl` lists every release object except itself, with one
329
+ row per canonical repository path.
330
+
331
+ Hugging Face Xet may deduplicate chunks internally; this does not change the
332
+ path-level storage contract above.
333
+
334
+ ## Licenses and upstream terms
335
+
336
+ LocateAnything-Data combines annotations and references derived from multiple
337
+ upstream datasets, so this repository does not select or imply one unified
338
+ license for all components. Each upstream dataset remains governed by its own
339
+ license, terms of use, access conditions, and attribution requirements. Users
340
+ must review the official upstream source linked in this README and comply with
341
+ the applicable terms before downloading, hydrating, using, or redistributing
342
+ any component. This repository does not grant additional rights to upstream
343
+ media.
344
+
345
+ ## Citation
346
+
347
+ If you find this work valuable, please cite:
348
+
349
+ ```bibtex
350
+ @article{wang2026locateanything,
351
+ title={LocateAnything: Fast and high-quality vision-language grounding with parallel box decoding},
352
+ author={Wang, Shihao and Liu, Shilong and Kuang, Yuanguo and Wei, Xinyu and Liu, Yangzhou and Li, Zhiqi and Man, Yunze and Chen, Guo and Tao, Andrew and Liu, Guilin and others},
353
+ journal={arXiv preprint arXiv:2605.27365},
354
+ year={2026}
355
+ }
356
+ ```
README_CN.md ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: LocateAnything-Data
3
+ task_categories:
4
+ - object-detection
5
+ tags:
6
+ - visual-grounding
7
+ - pointing
8
+ - megatron-energon
9
+ - webdataset
10
+ - multimodal
11
+ size_categories:
12
+ - 10M<n<100M
13
+ ---
14
+
15
+ # LocateAnything-Data
16
+
17
+ [English](README.md) | [Hugging Face 仓库](https://huggingface.co/datasets/NVEagle/LocateAnything-Data)
18
+
19
+ > 官方发布仓库:
20
+ > [`NVEagle/LocateAnything-Data`](https://huggingface.co/datasets/NVEagle/LocateAnything-Data)。
21
+ > 本集合不声明一个覆盖全部内容的统一许可证。使用任何组成部分前,请查阅并
22
+ > 遵守对应原始上游数据集的许可证和使用条款。
23
+
24
+ LocateAnything-Data 是面向空间视觉语言训练的数据集合,使用可索引 JSONL 和
25
+ Megatron-Energon 组织。任务只包括目标检测、visual grounding 和 pointing;
26
+ 不包含 VQA、benchmark、test、validation、chat 或内部构建 provenance。
27
+
28
+ 数据集总盘点如下:
29
+
30
+ | 项目 | 数量 |
31
+ |---|---:|
32
+ | Dataset folder | 42 |
33
+ | 标注 view | 47 |
34
+ | 训练 record | 10,136,648 |
35
+ | Canonical media pool | 41 |
36
+ | 被引用的物理图片 | 总计 9,801,026;其中托管 7,402,667 |
37
+ | Canonical TAR shard | 源盘点 926;其中托管 583 |
38
+
39
+ OS-Atlas 已经属于这个统一的 42-dataset 发布,不再单独建立一份媒体仓库或重复
40
+ 发布。
41
+
42
+ ## 图片再分发边界
43
+
44
+ 47 个标注 view 和脱敏后的 record-to-source-image mapping 都属于开源范围。
45
+ 以下 7 个上游来源的图片不能随仓库再分发,使用者必须从官方入口自行取得并在
46
+ 本地 hydrate:
47
+
48
+ | 上游来源 | LocateAnything dataset ID | Canonical pool ID | Record | 官方入口 | 预期 source-relative path |
49
+ |---|---|---|---:|---|---|
50
+ | CrowdHuman | `crowdhuman` | `locany--crowdhuman--train--source_image--v000001` | 15,000 | [下载](https://www.crowdhuman.org/download.html) | `train/Images/<name>.jpg` |
51
+ | DeepFashion2 | `deepfashion2` | `locany--deepfashion2--train--source_image--v000001` | 191,961 | [官方说明](https://github.com/switchablenorms/DeepFashion2)、[申请表](https://docs.google.com/forms/d/e/1FAIpQLSeIoGaFfCQILrtIZPykkr8q_h9qQ5BoTYbjvf95aXbid0v2Bw/viewform) | `train/image/000001.jpg` |
52
+ | Flickr30K | `flickr30k` | `locany--flickr30k--train--source_image--v000001` | 29,781 | [官方页面](https://shannon.cs.illinois.edu/DenotationGraph/data/index.html) | `flickr30k-images/<flickr_id>.jpg` |
53
+ | ImageNet | `partimagenet` | `locany--imagenet--train--source_image--v000001` | 100,000 | [下载/申请访问](https://www.image-net.org/download.php) | `train/<wnid>/<wnid>_*.JPEG` |
54
+ | Objects365 | `object365` | `locany--object365--train--source_image--v000001` | 1,742,289 | [下载及条款](https://www.objects365.org/download.html) | `images/train/patch*/objects365_v1_*.jpg` |
55
+ | SKU-110K | `sku110k` | `locany--sku110k--train--source_image--v000001` | 8,219 | [作者仓库](https://github.com/eg4000/SKU110K_CVPR19) | `images/train_*.jpg` |
56
+ | Unsplash | `unsplash` | `locany--unsplash--train--source_image--v000001` | 329,721 | [数据入口](https://unsplash.com/data)、[Dataset Terms](https://github.com/unsplash/datasets/blob/master/TERMS.md) | `raw_unsplash_images/<photo_id>.jpg` |
57
+
58
+ ImageNet 在这里是媒体来源,不是一个 LocateAnything dataset folder;使用它的标注
59
+ 数据集是 `partimagenet`。Objects365 是上游官方名称,`object365` 只是
60
+ LocateAnything 中的稳定 ID。
61
+
62
+ 这 7 个来源覆盖 2,416,971 条 record、2,398,359 个物理图片和内部 343 个 TAR;
63
+ 这些 TAR payload 一个都不会进入公开仓库。可以直接托管的其余部分包含 35 个
64
+ dataset folder、7,719,677 条 record、34 个媒体池、7,402,667 个物理图片和
65
+ 583 个 TAR。每个托管 TAR 在仓库里只有一个路径。
66
+
67
+ 本仓库不是上述 7 个上游数据集的镜像,也不授予其媒体权利。使用者必须自行从
68
+ 官方入口取得媒体、接受下载时有效的条款,并保持原始文件名和目录结构。
69
+ Hydration 工具不会绕过注册、申请表、密码或访问控制。
70
+
71
+ 补充下载说明:
72
+
73
+ - CrowdHuman 需要下载 mapping 所引用的训练图片分卷;官网明确规定图片不得
74
+ 再分发。
75
+ - DeepFashion2 需要逐用户申请并取得压缩包密码;公开 mapping 引用
76
+ `train/image`。
77
+ - Flickr30K 图片继续受 Flickr 条款约束;官方项目另行提供可公开分发的图片链接
78
+ 与 captions 版本。
79
+ - ImageNet view 使用 ILSVRC 风格训练目录中的 100,000 张图片,不能把 synset
80
+ 目录打平。
81
+ - Objects365 应保留 V1/V2 包的文件名,并按官方标注中的 `file_name` 关联,
82
+ 不能自行改名。
83
+ - SKU-110K 应保持解压后的图片和 CSV 目录结构。
84
+ - Unsplash Lite 不一定覆盖本 mapping 的 329,721 张图片。必须取得匹配的授权
85
+ release 并用 SHA-256 校验,不能用同名或相似图片替换。
86
+
87
+ ## 仓库组织
88
+
89
+ 仓库对每个 payload 只保留一个 canonical 路径:
90
+
91
+ ```text
92
+ LocateAnything-Data/
93
+ ├── .gitattributes
94
+ ���── README.md
95
+ ├── README_CN.md
96
+ ├── release-policy.json
97
+ ├── metadataset.yaml # 可立即读取的托管子集
98
+ ├── metadataset-full.yaml # 本地补齐 7 个媒体池后的全集
99
+ ├── manifests/
100
+ │ ├── release.json
101
+ │ ├── files.jsonl
102
+ │ ├── datasets.jsonl
103
+ │ ├── views.jsonl
104
+ │ ├── media-pools.jsonl
105
+ │ └── restricted-media.json
106
+ ├── datasets/
107
+ │ └── <dataset_id>/
108
+ │ ├── metadataset.yaml
109
+ │ └── views/
110
+ │ └── <view_id>/
111
+ │ ├── metadataset.yaml
112
+ │ ├── records.jsonl
113
+ │ └── records.jsonl.idx
114
+ ├── media/
115
+ │ └── <pool_id>/
116
+ │ ├── availability.json
117
+ │ ├── .nv-meta/ # 只存在于托管媒体池
118
+ │ └── shards/ # 只存在于托管媒体池
119
+ │ ├── image-NNNNNNNN.tar
120
+ │ └── image-NNNNNNNN.tar.idx
121
+ ├── mappings/
122
+ │ ├── media/<pool_id>/part-NNNNN.parquet
123
+ │ └── views/<dataset_id>/<view_id>/part-NNNNN.parquet
124
+ ├── schemas/
125
+ │ ├── media-source-map.schema.json
126
+ │ └── view-source-map.schema.json
127
+ ├── examples/
128
+ │ ├── read_indexed_jsonl.py
129
+ │ └── read_energon.py
130
+ └── tools/
131
+ ├── hydrate_restricted_media.py
132
+ └── verify_release.py
133
+ ```
134
+
135
+ 仓库中禁止出现 `datasets/<dataset_id>/media/`。从
136
+ `datasets/<dataset_id>/views/<view_id>/metadataset.yaml` 出发,每个 auxiliary
137
+ 媒体路径必须精确写成 `../../../../media/<pool_id>`。7 个外部媒体池在使用者
138
+ 本地 hydrate 前只有 `availability.json`。
139
+
140
+ `metadataset.yaml` 混合 35 个图片已由 Hugging Face 托管的数据集;
141
+ `metadataset-full.yaml` 混合全部 42 个数据集,在 7 个外部池全部 hydrate 并
142
+ 通过校验前必须 fail fast。
143
+
144
+ ## 标注格式
145
+
146
+ 标注保持为方便预览的 JSON Lines,每行是一条独立训练 record。下面是删减后的
147
+ schema 示例:
148
+
149
+ ```json
150
+ {
151
+ "_source": {
152
+ "schema": "eagle-energon.source-record/v1",
153
+ "dataset_id": "crowdhuman",
154
+ "view_id": "locate_anything_crowdhuman_crowdhuman",
155
+ "sample_id": "crowdhuman:locate_anything_crowdhuman_crowdhuman:file:0009:row:000000000000",
156
+ "source_annotation": "annotations/CrowdHuman/CrowdHuman.jsonl",
157
+ "source_file_index": 9,
158
+ "source_row": 0,
159
+ "source_record_sha256": "<sha256>"
160
+ },
161
+ "image": {
162
+ "kind": "image",
163
+ "source": "media_00",
164
+ "path": "m/000000000082.jpg"
165
+ },
166
+ "query": {
167
+ "Person": [[1, 410, 168, 1000]]
168
+ },
169
+ "task_type": "detection_grounding"
170
+ }
171
+ ```
172
+
173
+ `query` 中的值是数值点 `[x, y]` 或数值框 `[x1, y1, x2, y2]`,读取器不会
174
+ 再次缩放或改写。`image.source` 选择 view 的 Energon auxiliary pool,
175
+ `image.path` 是 TAR 中的精确 member name。禁止根据 packed member name 猜测
176
+ 原始文件名。
177
+
178
+ `records.jsonl.idx` 是 little-endian uint64 数组。N 条 record 对应 N+1 个
179
+ uint64 offset(每个 8 字节),第 i 行范围为
180
+ `[offset[i], offset[i + 1])`,因此可以 O(1) 定位。
181
+
182
+ 预览:
183
+
184
+ ```bash
185
+ sed -n '1,3p' \
186
+ datasets/object365/views/locate_anything_object365_object365/records.jsonl \
187
+ | jq -c .
188
+ ```
189
+
190
+ 不扫描整个文件、直接读取指定行:
191
+
192
+ ```bash
193
+ python examples/read_indexed_jsonl.py \
194
+ datasets/object365/views/locate_anything_object365_object365/records.jsonl \
195
+ 100
196
+ ```
197
+
198
+ ## 公开 source-image mapping
199
+
200
+ 公开仓库不包含内部 SQLite mapping,因为其中含有绝对路径和文件系统证据。
201
+ 公开版使用两张规范化、Zstandard 压缩的 Parquet 关系表:
202
+
203
+ 1. `mappings/media/<pool_id>/...`:每个上游 source-image alias 一行,把原始
204
+ dataset-relative 文件名/路径及 SHA-256 映射到 canonical `member_name` 和
205
+ content SHA-256。
206
+ 2. `mappings/views/<dataset_id>/<view_id>/...`:每个 record-media occurrence
207
+ 一行,把 record lineage 和 JSON pointer 映射到精确的 pool-local
208
+ `source_id` 及 canonical member。
209
+
210
+ 第二张表不可省略,因为字节完全相同的图片可能有多个上游文件名。只根据
211
+ `member_name` 反查会产生歧义;唯一权威 join key 是
212
+ `(pool_id, source_id)`。
213
+ `source_snapshot_id` 表示转换/source-manifest snapshot,不能把它解释为
214
+ 上游数据集的 release 名称。
215
+
216
+ 从第 12,911 行 record 找回精确上游图片:
217
+
218
+ ```sql
219
+ INSTALL parquet;
220
+ LOAD parquet;
221
+
222
+ SELECT
223
+ v.row_id,
224
+ v.source_sample_id,
225
+ m.source_media_name,
226
+ m.source_relative_path,
227
+ m.source_sha256,
228
+ m.member_name
229
+ FROM read_parquet(
230
+ 'mappings/views/crowdhuman/locate_anything_crowdhuman_crowdhuman/*.parquet'
231
+ ) AS v
232
+ JOIN read_parquet(
233
+ 'mappings/media/locany--crowdhuman--train--source_image--v000001/*.parquet'
234
+ ) AS m
235
+ USING (pool_id, source_id)
236
+ WHERE v.row_id = 12911;
237
+ ```
238
+
239
+ 从原始路径反查所有 LocateAnything record:
240
+
241
+ ```sql
242
+ SELECT v.dataset_id, v.view_id, v.row_id, v.source_sample_id
243
+ FROM read_parquet(
244
+ 'mappings/media/locany--crowdhuman--train--source_image--v000001/*.parquet'
245
+ ) AS m
246
+ JOIN read_parquet(
247
+ 'mappings/views/crowdhuman/locate_anything_crowdhuman_crowdhuman/*.parquet'
248
+ ) AS v
249
+ USING (pool_id, source_id)
250
+ WHERE m.source_relative_path =
251
+ 'train/Images/273271,1017c000ac1360b7.jpg';
252
+ ```
253
+
254
+ 公开 mapping 保留原始 source 文件名,不使用 LMDB key 或 packed member 冒充
255
+ 原始名字。mapping 绝不包含 `source_absolute_path`、内部 annotation 路径、
256
+ Lustre 路径、用户名、inode/device、软链接目标、token、cookie 或 signed URL。
257
+ 精确字段见 `schemas/`。
258
+
259
+ ## 使用 Megatron-Energon 读取
260
+
261
+ 格式绑定 `megatron-energon==7.4.0`:
262
+
263
+ - 直接可读的托管子集使用 `metadataset.yaml`;
264
+ - 7 个外部池全部 hydrate 后使用 `metadataset-full.yaml`;
265
+ - 单数据集使用 `datasets/<dataset_id>/metadataset.yaml`;
266
+ - 调试单 view 时使用对应 view 的 `metadataset.yaml`。
267
+
268
+ 该结构支持 JSONL 随机索引、未压缩 TAR 随机索引、多 worker、按 rank 切分和
269
+ stream packing。完全无放回的 sample-level permutation 应使用
270
+ `max_samples_per_sequence=1`、单 epoch shuffle multiplier,并关闭第二层
271
+ shuffle buffer;packing 放在样本随机化之后执行。
272
+
273
+ 仓库在 `examples/read_energon.py` 中提供轻量 task encoder 和可运行的 loader:
274
+
275
+ ```bash
276
+ python examples/read_energon.py metadataset.yaml --workers 8 --samples 3
277
+ ```
278
+
279
+ 外部媒体池缺失必须报错,训练代码不得静默跳过 record。
280
+
281
+ ## 本地补齐 7 个外部媒体池
282
+
283
+ Hydrator 只以公开 mapping 作为文件清单:
284
+
285
+ ```bash
286
+ python tools/hydrate_restricted_media.py \
287
+ --repo-root /data/LocateAnything-Data \
288
+ --dataset crowdhuman \
289
+ --source-root /data/upstream/CrowdHuman
290
+ ```
291
+
292
+ 它会对每个 source image:
293
+
294
+ 1. 精确解析 `source_relative_path`,禁止只按 basename 猜测;
295
+ 2. 校验字节数和 SHA-256;
296
+ 3. 保持稳定的 `member_name`;
297
+ 4. 在 canonical pool 内按内容去重;
298
+ 5. 写约 4 GiB 的未压缩 TAR;
299
+ 6. 生成 `.tar.idx` 和官方 Energon `.nv-meta`;
300
+ 7. 验证全部 annotation reference;
301
+ 8. 写本地 hydration receipt。
302
+
303
+ Hydrate 生成的媒体只能保留在本地,绝不能回传 Hugging Face。
304
+
305
+ ## Canonical 存储与去重
306
+
307
+ - `NVEagle/LocateAnything-Data` 是本集合唯一的 canonical Hugging Face
308
+ dataset repository。
309
+ - 每个 canonical TAR 在仓库中只有一个
310
+ `media/<pool_id>/shards/` 路径。
311
+ - 仓库不包含 dataset-local media projection。
312
+ - OS-Atlas 属于统一 catalog,不存在单独副本。
313
+ - `manifests/files.jsonl` 覆盖除其自身以外的全部发布对象,每个 canonical
314
+ 仓库路径恰好对应一行。
315
+
316
+ Hugging Face Xet 可以在内部进行 chunk-level dedup;这不改变上述路径级存储
317
+ 约束。
318
+
319
+ ## 许可与上游条款
320
+
321
+ LocateAnything-Data 汇集了来自多个上游数据集的标注和引用,因此本仓库不选择、
322
+ 也不暗示一个适用于全部组成部分的统一许可证。每个上游数据集仍受其各自的
323
+ 许可证、使用条款、访问条件和署名要求约束。下载、hydrate、使用或再分发任何
324
+ 组成部分前,使用者必须查阅本 README 中链接的官方上游来源并遵守适用条款。
325
+ 本仓库不授予任何额外的上游媒体权利。
326
+
327
+ ## 引用
328
+
329
+ 如果这项工作对您有价值,请引用:
330
+
331
+ ```bibtex
332
+ @article{wang2026locateanything,
333
+ title={LocateAnything: Fast and high-quality vision-language grounding with parallel box decoding},
334
+ author={Wang, Shihao and Liu, Shilong and Kuang, Yuanguo and Wei, Xinyu and Liu, Yangzhou and Li, Zhiqi and Man, Yunze and Chen, Guo and Tao, Andrew and Liu, Guilin and others},
335
+ journal={arXiv preprint arXiv:2605.27365},
336
+ year={2026}
337
+ }
338
+ ```