File size: 16,457 Bytes
fec481a 1b621ac fec481a 1b621ac e8c0f0e 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac 8dd4a66 1b621ac 8dd4a66 1b621ac 8dd4a66 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac fec481a 1b621ac d696cc1 fec481a d696cc1 9cf0b27 d696cc1 9cf0b27 d696cc1 fec481a d696cc1 1b621ac 6b45135 1b621ac 6b45135 fec481a | 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 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | ---
pretty_name: LocateAnything-Data
task_categories:
- object-detection
tags:
- visual-grounding
- pointing
- document-layout-analysis
- gui-grounding
- megatron-energon
- webdataset
- multimodal
---
# LocateAnything-Data
[中文](README_CN.md) · [Paper](https://arxiv.org/abs/2605.27365) ·
[Model](https://huggingface.co/nvidia/LocateAnything-3B) ·
[Code](https://github.com/NVlabs/Eagle/tree/main/Embodied)
## Overview
LocateAnything-Data is the public training-data release for
**LocateAnything: Fast and High-Quality Vision-Language Grounding with Parallel
Box Decoding**.
LocateAnything formulates detection and visual grounding as a unified
vision-language task. Given an image and a category, phrase, text string, or
action-oriented instruction, the model predicts the corresponding bounding
boxes or points. The data spans natural images, dense scenes, people,
autonomous driving, embodied interaction, graphical user interfaces, scene
text, documents, and tables.
The paper's Parallel Box Decoding treats a box or point as a structured
geometric unit instead of generating its coordinates independently.
LocateAnything-Data provides the diverse spatial supervision used to train
this unified formulation across visual domains.
This repository provides:
- detection, grounding, and pointing annotations in previewable JSONL;
- image media packed as indexed WebDataset TAR shards;
- Megatron-Energon metadata for distributed training; and
- public mappings from every training record and packed image back to its
original dataset-relative media name.
## Data coverage
The following grouping describes the main visual domains in this release.
Several datasets naturally support more than one domain or task.
| Domain | Included datasets |
|---|---|
| General detection and grounding | [COCO](datasets/coco/views/locate_anything_coco_coco), [RefCOCO](datasets/coco/views/locate_anything_coco_refcoco), [RefCOCO+](datasets/coco/views/locate_anything_coco_refcoco_plus), [RefCOCOg](datasets/coco/views/locate_anything_coco_refcocog), [G-RefCOCO](datasets/coco/views/locate_anything_coco_grefcoco), [Flickr30K](datasets/flickr30k), [HumanRef-CoT](datasets/humanref_cot), [Objects365](datasets/object365), [Open Images V6](datasets/openimages_v6), [OWDOD](datasets/owdod), [PACO](datasets/paco), [PartImageNet](datasets/partimagenet), [Unsplash](datasets/unsplash), [V3Det](datasets/v3det) |
| Dense object detection | [CrowdHuman](datasets/crowdhuman), [DeepFashion2](datasets/deepfashion2), [HumanParts](datasets/humanparts), [MOT17Det](datasets/mot17det), [MOT20Det](datasets/mot20det), [SKU-110K](datasets/sku110k) |
| Autonomous driving and robotics | [BDD100K](datasets/bdd100k), [EgoObjects](datasets/egoobjects), [nuImages](datasets/nuimages), [PixMo Points](datasets/pixmo_points), [RoboAfford](datasets/roboafford) |
| GUI | [GroundCUA](datasets/groundcua), [OS-Atlas](datasets/os_atlas), [ScaleCUA](datasets/scalecua) |
| Text recognition | [ArT](datasets/art_ocr), [BLIP3-OCR](datasets/blip3_ocr), [IDL-OCR](datasets/idlocr), [HierText](datasets/ocr_hiertext), [ICDAR 2013](datasets/ocr_icdar2013), [ICDAR 2015](datasets/ocr_icdar2015), [LSVT](datasets/ocr_lsvt), [RCTW](datasets/ocr_rctw), [ReCTS](datasets/ocr_rects), [SROIE](datasets/ocr_sroie), [TextOCR](datasets/ocr_textocr), [WildReceipt](datasets/ocr_wildreceipt) |
| Documents, layouts, and tables | [CDLA](datasets/cdla), [DocLayNet](datasets/doclaynet), [M6Doc](datasets/m6doc), [PubLayNet](datasets/publaynet), [TableBank](datasets/tablebank), [TabRecSet](datasets/tabrecset) |
### Spatial supervision
All records use a shared `query` representation:
| `task_type` | Query target | Typical use |
|---|---|---|
| `detection_grounding` | Bounding box `[x1, y1, x2, y2]` | Category detection, phrase grounding, GUI grounding, OCR, and layout localization |
| `pointing` | Point `[x, y]` | Point-based localization |
Coordinates use the LocateAnything normalized spatial grid and can be mapped
to image pixels with `x * width / 1000` and `y * height / 1000`.
## Release format
Each dataset has its own folder and may contain one or more annotation
**views**. A view is a training annotation variant over a media source—for
example, COCO detection and RefCOCO grounding are separate views while sharing
the same underlying images.
```text
LocateAnything-Data/
├── metadataset.yaml
├── metadataset-full.yaml
├── datasets/
│ └── <dataset_id>/
│ ├── metadataset.yaml
│ └── views/<view_id>/
│ ├── metadataset.yaml
│ ├── records.jsonl
│ └── records.jsonl.idx
├── media/
│ └── <pool_id>/
│ ├── .nv-meta/
│ └── shards/
│ ├── image-NNNNNNNN.tar
│ └── image-NNNNNNNN.tar.idx
├── mappings/
│ ├── media/<pool_id>/part-*.parquet
│ └── views/<dataset_id>/<view_id>/part-*.parquet
├── examples/
└── tools/
```
- `records.jsonl` keeps annotations easy to inspect and process.
- `records.jsonl.idx` stores byte offsets for direct row access.
- Uncompressed TAR shards preserve encoded image bytes and support indexed
reads without extracting millions of files.
- `.tar.idx` and `.nv-meta` are consumed by Megatron-Energon.
- Parquet mappings preserve record lineage and original media names.
### Annotation record
Each JSONL line is one independent training record:
```json
{
"_source": {
"dataset_id": "coco",
"view_id": "locate_anything_coco_refcoco",
"sample_id": "coco:locate_anything_coco_refcoco:..."
},
"image": {
"kind": "image",
"source": "media_00",
"path": "m/000000012345.jpg"
},
"query": {
"the person holding an umbrella": [[124, 86, 612, 944]]
},
"task_type": "detection_grounding"
}
```
`image.source` selects the auxiliary media pool declared by the view-level
`metadataset.yaml`. `image.path` is the exact member name inside the TAR.
## Download
Install the Hugging Face CLI and download the repository:
```bash
pip install -U huggingface_hub
hf download NVEagle/LocateAnything-Data \
--repo-type dataset \
--local-dir LocateAnything-Data
```
### Download selected datasets
Download the subset helper first:
```bash
hf download NVEagle/LocateAnything-Data \
tools/download_subset.py \
--repo-type dataset \
--local-dir LocateAnything-Data
```
Then select datasets by their folder IDs:
```bash
# Show all available dataset IDs.
python LocateAnything-Data/tools/download_subset.py --list
# Inspect the dependency closure and download size without downloading payloads.
python LocateAnything-Data/tools/download_subset.py \
--dataset coco \
--local-dir LocateAnything-Data \
--dry-run
# Download one dataset.
python LocateAnything-Data/tools/download_subset.py \
--dataset coco \
--local-dir LocateAnything-Data
# Download several datasets into the same local repository.
python LocateAnything-Data/tools/download_subset.py \
--dataset coco,paco \
--local-dir LocateAnything-Data
```
The helper reads the release manifests and automatically includes the selected
datasets' JSONL records, view mappings, media mappings, Energon metadata, and
all required media pools. Shared dependencies are resolved automatically. For
example, selecting `paco` also downloads the COCO media pool referenced by its
annotations.
To download annotations and mappings without hosted TAR payloads:
```bash
python LocateAnything-Data/tools/download_subset.py \
--dataset coco,paco \
--annotations-only \
--local-dir LocateAnything-Data
```
For datasets whose images must be obtained from upstream, the helper downloads
the annotations, mappings, and media-availability metadata, and reports that
external media is still required. Follow
[`tools/hydrate_restricted_media.py`](tools/hydrate_restricted_media.py) after
obtaining those images.
Subset download operates at dataset level. An individual annotation view can
be copied separately, but it may still depend on the dataset's complete shared
media pool.
After a full or subset download, enter the local repository:
```bash
cd LocateAnything-Data
```
## Inspect annotations
JSONL records can be previewed with standard command-line tools:
```bash
sed -n '1,3p' \
datasets/coco/views/locate_anything_coco_refcoco/records.jsonl \
| jq .
```
Read a row by index without scanning the JSONL file:
```bash
python examples/read_indexed_jsonl.py \
datasets/coco/views/locate_anything_coco_refcoco/records.jsonl \
100
```
## Visualize a sample
Install the runtime dependencies:
```bash
pip install "megatron-energon==7.4.0" pillow
```
The following example loads one sample through Energon and draws all boxes and
points:
```python
from io import BytesIO
from pathlib import Path
from PIL import Image, ImageDraw
from megatron.energon import (
WorkerConfig,
get_savable_loader,
get_train_dataset,
)
from examples.read_energon import LocateAnythingTaskEncoder
dataset = get_train_dataset(
Path("datasets/ocr_icdar2013/metadataset.yaml"),
split_part="train",
worker_config=WorkerConfig(
rank=0, world_size=1, num_workers=0
),
batch_size=None,
max_samples_per_sequence=1,
shuffle_over_epochs_multiplier=1,
shuffle_buffer_size=None,
task_encoder=LocateAnythingTaskEncoder(),
repeat=False,
)
sample = next(iter(get_savable_loader(dataset)))
image = Image.open(BytesIO(sample.image)).convert("RGB")
draw = ImageDraw.Draw(image)
def to_pixel(target):
values = list(target)
for i in range(0, len(values), 2):
values[i] = round(values[i] * image.width / 1000)
values[i + 1] = round(values[i + 1] * image.height / 1000)
return values
for label, targets in sample.record["query"].items():
for target in targets:
xy = to_pixel(target)
if len(xy) == 4:
draw.rectangle(xy, outline="red", width=3)
draw.text((xy[0], xy[1]), label, fill="red")
elif len(xy) == 2:
x, y = xy
draw.ellipse((x - 5, y - 5, x + 5, y + 5), fill="red")
draw.text((x + 6, y), label, fill="red")
image.save("sample.png")
```
## Read for training
The repository targets `megatron-energon==7.4.0`. Choose the entry point that
matches your training scope:
| Entry point | Purpose |
|---|---|
| `metadataset.yaml` | All datasets whose media is available directly in this repository |
| `metadataset-full.yaml` | The full mixture after locally adding the externally downloaded media |
| `datasets/<dataset_id>/metadataset.yaml` | One dataset |
| `datasets/<dataset_id>/views/<view_id>/metadataset.yaml` | One annotation view |
Run the included reader:
```bash
python examples/read_energon.py \
datasets/coco/metadataset.yaml \
--workers 8 \
--samples 16
```
`examples/read_energon.py` contains a minimal task encoder. It resolves the
record's media source, reads the encoded image directly from the indexed TAR,
and returns the annotation dictionary with image bytes.
## Map a record back to its source image
Two Parquet relations connect each training record to its source image:
- `mappings/views/...` connects a JSONL row to a media `source_id`.
- `mappings/media/...` connects that `source_id` to the original
dataset-relative filename, file hash, and packed TAR member.
The authoritative join key is `(pool_id, source_id)`. For example:
```sql
SELECT
v.row_id,
v.source_sample_id,
m.source_media_name,
m.source_relative_path,
m.source_sha256,
m.member_name
FROM read_parquet(
'mappings/views/crowdhuman/locate_anything_crowdhuman_crowdhuman/*.parquet'
) AS v
JOIN read_parquet(
'mappings/media/locany--crowdhuman--train--source_image--v000001/*.parquet'
) AS m
USING (pool_id, source_id)
WHERE v.row_id = 100;
```
## Media downloaded from upstream sources
Media from the following datasets must be obtained from the original source.
This repository includes their annotations, JSONL indexes, source-image
mappings, and metadataset configuration, but not their image files.
| Dataset folder | Download images from | Expected path under `--source-root` |
|---|---|---|
| `crowdhuman` | [CrowdHuman](https://www.crowdhuman.org/download.html) | `train/Images/<image>.jpg` |
| `deepfashion2` | [DeepFashion2](https://github.com/switchablenorms/DeepFashion2) | `train/image/<six-digit-id>.jpg` |
| `flickr30k` | [Flickr30K](https://shannon.cs.illinois.edu/DenotationGraph/data/index.html) | `flickr30k-images/<flickr-id>.jpg` |
| `partimagenet` | [ImageNet](https://www.image-net.org/download.php) | `train/<wnid>/<wnid>_<id>.JPEG` |
| `object365` | [Objects365](https://www.objects365.org/download.html) | `images/train/patch*/objects365_v1_<id>.jpg` |
| `sku110k` | [SKU-110K](https://github.com/eg4000/SKU110K_CVPR19) | `images/train_<id>.jpg` |
| `unsplash` | **TODO — reproducible media retrieval is not yet available** | `raw_unsplash_images/<photo-id>.jpg` |
**Unsplash TODO.** The annotations and source-image mappings are included, but
the current Unsplash distribution does not provide a stable procedure for
reconstructing the exact historical image bytes referenced by this release.
Unsplash media hydration is therefore not currently supported. We will document
a reproducible retrieval and verification procedure when one is available.
`metadataset.yaml` reads the datasets whose images are already hosted in this
repository. Use `metadataset-full.yaml` only after all referenced external media
pools are available locally. Unsplash is excluded from the currently supported
reproducible hydration workflow.
### Prepare an upstream media dataset
1. Download the images from the official source and accept its terms.
2. Keep the upstream filenames and arrange the files under a source root using
the layout shown above.
3. Install `megatron-energon==7.4.0`.
4. Run the hydration tool with the matching dataset ID and source root.
```bash
python tools/hydrate_restricted_media.py \
--repo-root /data/LocateAnything-Data \
--dataset crowdhuman \
--source-root /data/upstream/CrowdHuman
```
Run this once for each of the seven dataset folders, changing `--dataset` and
`--source-root` each time. The accepted dataset IDs are:
```text
crowdhuman
deepfashion2
flickr30k
partimagenet
object365
sku110k
unsplash
```
The tool uses `mappings/media/<pool_id>/part-*.parquet` as the file inventory.
It resolves every `source_relative_path` under `--source-root`, verifies the
file, and builds the local TAR indexes and Energon metadata required by
`metadataset-full.yaml`. The tool prepares local media only; upstream downloads
must be completed separately.
## License Information
LocateAnything-Data is a collection built from multiple upstream datasets.
Each source dataset remains governed by its original license, terms of use,
access conditions, and attribution requirements. Users must review and comply
with the applicable terms of each source dataset before use.
This repository does not grant additional rights to upstream media.
### Copyright concerns
This collection is prepared for academic research. If you believe that any
content in LocateAnything-Data raises a copyright or attribution concern,
please contact the maintainers through the
[Hugging Face Community tab](https://huggingface.co/datasets/NVEagle/LocateAnything-Data/discussions).
We will review the request and address verified concerns, including removing
affected content when appropriate.
## Acknowledgements
We thank the creators and maintainers of all datasets listed in
[Data coverage](#data-coverage). Their work makes research on unified
detection, grounding, pointing, GUI understanding, OCR, document
understanding, autonomous driving, and robotics possible.
If an important source or attribution is missing, please let us know through
the
[Hugging Face Community tab](https://huggingface.co/datasets/NVEagle/LocateAnything-Data/discussions).
## Citation
If you find this work valuable, please cite:
```bibtex
@article{wang2026locateanything,
title={LocateAnything: Fast and high-quality vision-language grounding with parallel box decoding},
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},
journal={arXiv preprint arXiv:2605.27365},
year={2026}
}
```
|