Yanqing0327's picture
OpenEmbed data
2f92e95
|
Raw History Blame Contribute Delete
4.33 kB
# mmeb-visual7w
The MMEB-train subset `Visual7W` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes plus the information needed to rebuild the training shards byte for byte.
* Registry id: `mmeb/Visual7W` (exact case; the folder name is lowercase). Category: vqa.
* 69,756 records in 16 TFRecord shards (3.54 GB); 69,756 image references.
* Source of the images: TIGER-Lab/MMEB-train at revision `76dd0a440b6d4c02776830a804443fffbb2d0bfa`, `images_zip/Visual7W.zip` (0.60 GB); each image is a member of that zip, byte for byte.
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`). Every stored field of the record (`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`) as stored; the provenance as `provenance_source` and `provenance_ordinal` (the shard and record of the July 2026 conversion the record came from) and `mmeb_train_row` (its row in MMEB-train); for every image field (`query_image`, `target_image`, `neg_images`) its sha256, length, zip and member; and the sha256 and length of the serialized record (`record_sha256` for our training bytes, `record_sha256_public` for the bytes with the public provenance prefix, see below).
* `filters.parquet`: per record what the training loader applied when it read the record: `adapter_emitted` (the adapter turned it into a training row), `adapter_flags` (fixes or warnings it counted), `blocked_at_read` (contamination block at read time) and `dedup_skipped` (read-time duplicate skip list).
* `shards.parquet`: per shard its record count, bytes, md5 and crc32c (base64, as storage listings report them), for our training shard and for the public rebuild.
* `set.json`: these facts in machine-readable form.
## Rebuild
From the repository root (Python 3.9+, `pip install pyarrow huggingface_hub crc32c`; anonymous Hub access works):
```
python tools/mmeb_train/rebuild_shards.py --out shards/ --sets mmeb/Visual7W
```
It downloads `images_zip/Visual7W.zip`, puts every image back, re-serializes every record (tf.train.Example, the RecordV2 schema of the training code), writes the shards under `shards/` (3.53 GB) and checks every record's sha256 and every shard's md5 and crc32c. `--no-write` checks without writing; `--delete-zips` removes the zip afterwards.
Provenance: each record names the shard of the July 2026 conversion it came from. Our training shards carry our internal storage prefix in that string; the release writes `openembed://july-conversion/` instead, so the rebuilt shards equal our training shards in every other byte and are checked against the `*_public` values. With the internal prefix 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 69,756 records were emitted by the training adapter with no flag, none was blocked and none skipped. Removals happened when these shards were built (contamination with the evaluation sets is removed at that point): from 69,817 records of the July conversion, 61 exact duplicate records merged into the first occurrence (their negatives appended to it). Read-time gate: `applied_at_build`.
## Verified
End to end on 2026-11-10 (the zip downloaded anonymously from the Hub, 0.60 GB):
* Training bytes (internal prefix): 69,756 / 69,756 records with the recorded sha256; 16 / 16 shards with the md5 and crc32c of the shards our training read.
* Public rebuild (this release): 69,756 / 69,756 records and 16 / 16 shards match the `*_public` values.
* Image references: 69,756, every one found in the zip with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `NS`: no license stated by the publisher. No dataset license stated (its toolkit's MIT license covers code); the images are COCO images.
MMEB-train re-hosts this subset; its repository tag does not change the terms of the original dataset. These records are derived from it and follow the same terms. They are released for research use; we remove items on request. The images are not redistributed here: they are fetched from MMEB-train.