File size: 6,295 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-crop
The training set `grd/refexp_crop` 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. Target and negative crops are not stored: the loader cuts each one from its full image exactly as our builder did.
* Registry id: `grd/refexp_crop` (exact case; the folder name is lowercase). Category: grounding.
* 261,038 records in 150 TFRecord shards (64.14 GB).
* Images: 109,918 images (22.30 GB) in 7 uncompressed tar files under `images/` (22.39 GB); 766,373 crop references.
* Source: Region-description and bounding-box turns of the LLaVA-1.5 665K instruction mix (its RefCOCO and Visual Genome region data, on COCO and Visual Genome images; the same turns in the Open-LLaVA-NeXT mix were merged into them), from TFRecord conversions made in April 2026 whose converter is not published, built into crop retrieval rows by our grounding builder: an image and a referring expression to the tight crop of its box (JPEG quality 95, 4:2:0, as MMEB-V2's crop tasks), with up to three crops of other regions of the same image as negatives. The conversion did not keep the upstream image ids, so this folder ships each full image as we stored it (`images/`, each unique image once); the crops are not shipped: the loader cuts them from the full image exactly as our builder did.
## 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). A crop's pointer names its full image and the transformation that cuts it, `{"op": "pil_jpeg", "mode": "RGB", "crop": [x1, y1, x2, y2], "save": {"quality": 95, "subsampling": 2}}`: convert to RGB, crop the rectangle, save as JPEG quality 95 with 4:2:0 chroma subsampling (the rectangles are the builder's, from its per-shard index).
* `images/images-NNNNN.tar`: 7 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 "Pillow>=9.5"`; the crops are re-encoded as our builder made them (Pillow 12.1.1), which gives the same bytes with Pillow 9.5.0 to 12.3.0, checked on our test crops; the script stops on an older Pillow, and its general note about Pillow 12.3.0 concerns other sets):
```
python tools/openembed_data/rebuild_shards.py --out shards/ --sets grounding/refexp-crop --cache grounding/refexp-crop
```
`--cache` must name this folder: the pointers name the tar files relative to it. The script writes the 150 shards (64.13 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 the training adapter emitted 261,032 of 261,038 records; 6 were blocked as contamination and 0 skipped as duplicates (per record in `filters.parquet`). Their images are shipped too, since the shards hold them. 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): 261,038 / 261,038 records with the recorded sha256; 150 / 150 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: 1,027,411, every one read from `images/` with the recorded sha256 and length (missing 0, mismatched 0); the 766,373 crops among them re-created from their full images.
## 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 (the loader recreates the crops, so no derived image is distributed). 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.
|