File size: 5,501 Bytes
2f92e95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# omniedit

The training set `edit/omniedit` as the OpenEmbed models were trained on it, as records that point to each image in the published OmniEdit-Filtered-1.2M dataset, or carry our bytes where no published image could be matched with confidence.

* Registry id: `edit/omniedit`. Category: editing (the source image and the edit instruction retrieve the edited image).
* 1,197,338 records in 1,178 TFRecord shards. Each record is a `tf.train.Example` with the source image (`jpg`), the edited image (`cand_jpg`), the edit instruction (`query_text`) and the stored strings `text`, `neg_text` and `src`.
* Source: OmniEdit-Filtered-1.2M (TIGER-Lab/OmniEdit-Filtered-1.2M, revision 82455c6c, the last commit on or before 2026-08-02, which our conversion read): instruction-based edits of seven skills.
* Images: 2,141,418 of 2,394,676 (89.4%) point upstream; 205,448 distinct images (65.84 GB) ship in this folder.

## Approximate rebuild

Our conversion re-encoded every image (RGB; resized to our size where it differs, bicubic; JPEG quality 95, 4:2:0, Pillow), and its bytes cannot be reproduced exactly, so the loader re-encodes each upstream image the same way and the rebuilt images match our training images approximately. Texts, feature order and record order are exact, and so are the images that ship here. On our checks (full resolution, 0-255 scale, mean absolute pixel difference per image):

* edited images: 298 of 300 sampled within 3, mean 0.47, largest 3.04.
* source images: 11 of 12 sampled within 3, mean 0.72, largest 5.08.
* edited images matched as the only candidate or by the alignment at thumbnail difference 1 to 3: 11 of 11 sampled within 3, mean 0.32, largest 0.59.

## Files

* `records.parquet`: one row per record in shard order (`shard`, `ordinal`): `feature_order`, `texts` (JSON, every stored string feature) and, per image (`jpg`, `cand_jpg`), `*_ptr` (JSON: an upstream item at the revision above, a parquet cell (`hf_parquet_cell`: file, row, column) or a member of a tar archive published in parts (`hf_split_tar_member`), with the re-encoding, `upstream_sha256` (the sha256 of the upstream image we matched, where our scans hashed it) and, for a parquet cell, `upstream_file_sha256` (the sha256 of its file at the revision); or `local_tar_member`, our bytes in `images/`), `*_sha256` and `*_len` of our training bytes, and `*_reason`: why it points upstream or ships. The loader checks both upstream hashes before re-encoding; an image that fails is left out and listed.
* `shards.parquet`: per shard the record count and the md5 of our training shard (the rebuild differs in the re-encoded images).
* `images/ours-NNNNN.tar`: our bytes, members `<sha256>.jpg`.
* `set.json`: these facts in machine-readable form.

## Rebuild

From the repository root (`pip install pyarrow huggingface_hub Pillow crc32c`):

```
python tools/openembed_data/rebuild_edit.py --set-dir editing/omniedit --out shards/ --cache hf_cache/
```

The script downloads the upstream parquet files the records point into, reads the cells and re-encodes them.

Download and disk: the records point into 571 upstream parquet files, 2,972.25 GB in all (the largest 6.09 GB), each downloaded whole into `--cache` (with `--shards`, only the files of those shards). The rebuilt shards take 961.56 GB, and this folder ships 65.84 GB of our images in `images/`.

## How the records were matched

Each record's target image (for an inverse-edit record, its query image) was compared with every upstream edited image by a 16x16 grey thumbnail (mean absolute difference up to 10 to be a candidate; a different instruction counts 4 more). Where several upstream images were within 1 of the best, the record's place decided: our records follow the upstream rows, so between two unambiguous records each record takes the row its place predicts.
An image points upstream when the match is confident: thumbnail difference up to 1, or up to 3 with the same instruction, or up to 3 when it is the only candidate (no other upstream image within 1) or placed by the alignment (images resized by our conversion land there; such matches were checked at full resolution, above). The source image is the same row's source column and points upstream when the edited image does.
Everything else ships as our bytes:

* the record's matched image does not point upstream, so neither does the other image of its row: 914 edited images, 125,715 source images.
* several near-identical upstream images and nothing to choose between them: 100,780 edited images, 832 source images.
* the closest upstream image is not close enough to point to it: 23,083 edited images, 82 source images.
* no upstream image within the thumbnail distance: 1,852 edited images, 0 source images.

## Verified

The loader was run end to end on two other editing sets (aurora, a parquet source; gptimageedit_ultraedit, tar archives), rebuilding shards from the upstream and comparing them with our training shards; for this set, the sampled checks above.
Matching by 16x16 thumbnails can take a near-identical upstream picture for ours (consecutive video frames, repeated edits of one picture); such images rebuild to the wrong picture. On our checks this is rare (about one image in a thousand or fewer), but it is not ruled out per image.

## Terms

OmniEdit-Filtered-1.2M is published under MIT (its Hugging Face card). These records are derived from it and follow its terms. They are released for research use; we remove items on request.