Datasets:
|
Download image_text/visualnews-t2i/README.md from UCSC-VLAA/OpenEmbed-Data: direct link, hf CLI and curl.
- Browser
- Download file 3.91 kB
-
https://huggingface.co/datasets/UCSC-VLAA/OpenEmbed-Data/resolve/main/image_text/visualnews-t2i/README.md
- Command line
-
hf download hf://datasets/UCSC-VLAA/OpenEmbed-Data/image_text/visualnews-t2i/README.md
-
curl -L -o README.md https://huggingface.co/datasets/UCSC-VLAA/OpenEmbed-Data/resolve/main/image_text/visualnews-t2i/README.md
3.91 kB
| # visualnews-t2i | |
| The training set `ext/visualnews_t2i` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes, with a pointer to each image's pinned public source and the sha256 and length of our training bytes. | |
| * Registry id: `ext/visualnews_t2i` (exact case; the folder name is lowercase). Category: image_text. | |
| * 1,236,464 records in 125 TFRecord shards (50.93 GB). | |
| * Source: VisualNews (Liu et al. 2021), full release (origin.tar from the authors' site): a news caption to its photo; each photo is the member of origin.tar byte for byte. | |
| ## 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 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 pinned source item (repository, revision, file, row or member, and the transformation our converter applied). | |
| * `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. | |
| ## Rebuild | |
| From the repository root (`pip install pyarrow huggingface_hub crc32c`; every image is the source's bytes as published, so no re-encoding and no Pillow are needed): | |
| ``` | |
| python tools/openembed_data/rebuild_shards.py --out shards/ --sets ext/visualnews_t2i | |
| ``` | |
| It writes the 125 shards (50.93 GB) and checks every record's sha256 and every shard's md5 and crc32c; `--no-write` checks without writing. This set reads members of VisualNews's `origin.tar` (https://www.cs.rice.edu/~vo9/visualnews/origin.tar, about 98 GB), which the script does not download: extract it into the cache folder (`--cache`, default `openembed_sources/`), e.g. `tar xf origin.tar -C openembed_sources/` (an unextracted tar is also read, but each worker process then indexes the whole archive first). | |
| Provenance: the provenance strings of this set name only public sources, so the public rebuild is byte-identical to our training shards (the `*_public` values equal `record_sha256`, `md5` and `crc32c`); we checked that before release. | |
| ## Filters | |
| At read time the training adapter emitted 1,235,522 of 1,236,464 records (0 with a flag: ); 942 were blocked and 0 skipped (per record in `filters.parquet`). These are the shards as our converter wrote them, read in place (not rebuilt). Read-time gate: `DatasetBlocklist` (the loader skips the records on the dataset's contamination blocklist). | |
| ## Verified | |
| End to end on 2026-11-10: | |
| * Training bytes (internal prefixes): 1,236,464 / 1,236,464 records with the recorded sha256; 125 / 125 shards with the md5 and crc32c of the shards our training read. | |
| * Public rebuild (this release): 1,236,464 / 1,236,464 records and 125 / 125 shards match the `*_public` values. | |
| * Image references: 1,236,464, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0). | |
| ## Terms | |
| License class `NS`: no licence stated by the publisher. No licence is stated by the authors (the download is a directory listing); the photos and captions come from news agencies (The Guardian, BBC, USA Today, The Washington Post). | |
| These records are derived from the source above and follow its terms. They are released for research use; we remove items on request. | |