Datasets:
Download editing/gptimageedit-hqedit/README.md from UCSC-VLAA/OpenEmbed-Data: direct link, hf CLI and curl.
- Browser
- Download file 5.74 kB
-
https://huggingface.co/datasets/UCSC-VLAA/OpenEmbed-Data/resolve/main/editing/gptimageedit-hqedit/README.md
- Command line
-
hf download hf://datasets/UCSC-VLAA/OpenEmbed-Data/editing/gptimageedit-hqedit/README.md
-
curl -L -o README.md https://huggingface.co/datasets/UCSC-VLAA/OpenEmbed-Data/resolve/main/editing/gptimageedit-hqedit/README.md
gptimageedit-hqedit
The training set edit/gptimageedit_hqedit as the OpenEmbed models were trained on it, as records that point to each image in the published GPT-Image-Edit-1.5M, HQ-Edit part dataset, or carry our bytes where no published image could be matched with confidence.
- Registry id:
edit/gptimageedit_hqedit. Category: editing (the source image and the edit instruction retrieve the edited image). - 89,585 records in 88 TFRecord shards. Each record is a
tf.train.Examplewith the source image (jpg), the edited image (cand_jpg), the edit instruction (query_text) and the stored stringstext,neg_textandsrc. - Source: GPT-Image-Edit-1.5M, HQ-Edit part (UCSC-VLAA/GPT-Image-Edit-1.5M, revision 018f8e91, the last commit on or before 2026-08-02, which our conversion read): HQ-Edit inputs edited again with GPT-Image-1.
- Images: 174,867 of 179,170 (97.6%) point upstream; 4,302 distinct images (1.32 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: 49 of 49 sampled within 3, mean 0.55, largest 1.13.
- source images: 47 of 47 sampled within 3, mean 0.7, largest 1.36.
- edited images matched as the only candidate or by the alignment at thumbnail difference 1 to 3: 26 of 26 sampled within 3, mean 0.61, largest 1.1.
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); orlocal_tar_member, our bytes inimages/),*_sha256and*_lenof 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/gptimageedit-hqedit --out shards/ --cache hf_cache/
The upstream images sit in tar archives published in parts; the script reads each archive once as a stream (part after part; --delete-parts removes a part once read), re-encodes the images the records need and keeps them in --spill until the shards are written.
Download and disk: the records point into 33 archive parts, 701.49 GB in all (the largest 21.47 GB); the re-encoded images in --spill take about 64.20 GB. The rebuilt shards take 65.55 GB, and this folder ships 1.32 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 naming rule of the archive (each edited image has its input under a matching name) and our source image decided. 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 was matched on its own (by the naming rule, else by a search over all members) and points upstream at a difference up to 1, or up to 3 by the naming rule next to a confident edited image. Everything else ships as our bytes:
- the upstream source image is not close enough to ours: 16 edited images, 2,268 source images.
- several near-identical upstream images and nothing to choose between them: 1,281 edited images, 0 source images.
- no upstream image within the thumbnail distance: 389 edited images, 0 source images.
- the closest upstream image is not close enough to point to it: 318 edited images, 13 source images.
- no upstream image matches our source image: 0 edited images, 18 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
GPT-Image-Edit-1.5M (UCSC-VLAA/GPT-Image-Edit-1.5M) is a dataset of our group; we release these records without further restriction. We remove items on request.