Datasets:
File size: 5,233 Bytes
395d8de | 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 | # refexp-matching
The training set `grd/refexp_matching` exactly as the OpenEmbed models were trained on it (both stages): every record with all its stored fields except the image bytes, and the image bytes we trained on in `images/`, each unique image once.
* Registry id: `grd/refexp_matching` (exact case; the folder name is lowercase). Category: grounding.
* 72,376 records in 77 TFRecord shards (35.99 GB).
* Images: 21,352 images (5.26 GB) in 2 uncompressed tar files under `images/` (5.28 GB).
* Source: The LLaVA-1.5 region turns of grounding/refexp-crop, built by our grounding builder into matching rows: an image and one referring expression to the same image and another expression of the same box (as MMEB-V2's RefCOCO-Matching), with up to eight expressions of other objects of the image as negatives; query and target hold the same image bytes. The conversion did not keep the upstream image ids, so this folder ships the image bytes we trained on, each unique image once (`images/`).
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`): every stored field (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `query_text`, `instruction`, `target_text`, `neg_texts`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`), `provenance` (the shard and record of the earlier conversion it came from, and the sha256 of the source image) and the sha256 and length of the serialized record (`record_sha256`: our training bytes; `record_sha256_public`: with the public provenance). For every image field (`query_image`, `target_image`, `neg_images`): sha256, length and `*_source`, a JSON pointer to the image's member in `images/` (`local_tar_member`: the tar file relative to this folder, the member name, its data offset and size). `query_image` and `target_image` of a row are the same image and point at the same member.
* `images/images-NNNNN.tar`: 2 uncompressed tar files (about 3 GB each) holding every image the records use, once each, as members `<sha256>.<ext>` (the sha256 of the member's bytes; plain ustar headers: mode 0644, no owner, mtime 0). Each member is one of our stored images byte for byte.
* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.
* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.
* `set.json`: these facts in machine-readable form; `verification.json`: our end-to-end check.
## Rebuild
From the repository root (`pip install pyarrow crc32c`; every image is our stored bytes as they are, so no re-encoding and no Pillow are needed):
```
python tools/openembed_data/rebuild_shards.py --out shards/ --sets grounding/refexp-matching --cache grounding/refexp-matching
```
`--cache` must name this folder: the pointers name the tar files relative to it. The script writes the 77 shards (35.98 GB) and checks every record's sha256 and every shard's md5 and crc32c; `--no-write` checks without writing. Nothing is downloaded.
Provenance: our training shards carry our internal storage location in the provenance string; the release writes `openembed://...` instead, so the rebuilt shards equal our training shards in every other byte and are checked against the `*_public` values. With the internal prefixes the rebuild is byte-identical to the training shards (`record_sha256`, `md5`, `crc32c`); we checked that before release.
## Filters
At read time nothing was removed: all 72,376 records were emitted by the training adapter with no flag, none was blocked and none skipped. The training loader checked every record against the contamination blocklist of the final run's policy (exact evaluation items) and skipped the listed ones. When these shards were built no record was removed: the builder's own rules decide which boxes become rows (see the source above).
## Verified
End to end on 2026-11-11, from this folder only (Pillow 12.3.0):
* Training bytes (internal prefixes): 72,376 / 72,376 records with the recorded sha256; 77 / 77 shards with the md5 and crc32c of the shards our training read.
* Public rebuild (this release): every record and shard matches the `*_public` values.
* Image references: 144,752, every one read from `images/` with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `TP`: open annotations; the images are under third-party terms. Annotations: RefCOCO and RefCOCO+ come with an Apache-2.0 repository (lichengunc/refer), RefCOCOg is under CC BY 4.0 (released by Google), Visual Genome under CC BY 4.0, and the LLaVA-1.5 mix's text under CC BY 4.0, to be used in line with OpenAI's policy. The images are COCO and Visual Genome photos; COCO does not own its images and their use follows the Flickr Terms of Use, so no licence for the images comes with this folder. The full images are distributed as stored, unmodified. Our records label every row 'LLaVA-1.5 (Apache-2.0 data, CC-BY-NC images)'.
These records and images are derived from the source above and follow its terms. They are released for research use; we remove items on request.
|