Datasets:
Upload 1393 files
Browse files- .gitattributes +1 -0
- README.md +3 -2
- checksums/SHA256SUMS +7 -5
- data/train-00000-of-00001.parquet +3 -0
- scripts/build_parquet.py +47 -0
- scripts/prepare_release.py +0 -0
- scripts/validate_release.py +14 -2
.gitattributes
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.npz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 1 |
*.png filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -10,7 +10,7 @@ configs:
|
|
| 10 |
default: true
|
| 11 |
data_files:
|
| 12 |
- split: train
|
| 13 |
-
path: data/train
|
| 14 |
task_categories:
|
| 15 |
- text-to-image
|
| 16 |
tags:
|
|
@@ -58,7 +58,8 @@ The original five formats and the three additions were measured in separate sess
|
|
| 58 |
|
| 59 |
## Dataset organization
|
| 60 |
|
| 61 |
-
- `data/train
|
|
|
|
| 62 |
- `raw/` contains `decoded_float32.npy`, `final_latent_float32.npy`, `trajectory.npz`, and capture `metadata.json` for every scored run.
|
| 63 |
- `metrics/` contains raw per-image, per-parameter, paired-statistics, summary, trajectory, latency, and performance tables.
|
| 64 |
- `comparison_sheets/` contains eight-format sheets, BF16-relative difference maps, and automatically selected detail crops.
|
|
|
|
| 10 |
default: true
|
| 11 |
data_files:
|
| 12 |
- split: train
|
| 13 |
+
path: data/train-*.parquet
|
| 14 |
task_categories:
|
| 15 |
- text-to-image
|
| 16 |
tags:
|
|
|
|
| 58 |
|
| 59 |
## Dataset organization
|
| 60 |
|
| 61 |
+
- `data/train-00000-of-00001.parquet` is the Dataset Viewer source: one self-contained table with the embedded image plus every prompt, seed, format, checkpoint provenance, raw-artifact path, and flattened metric column.
|
| 62 |
+
- `data/train/metadata.jsonl` and `data/train/images/` are the equivalent ImageFolder tree kept for direct file access. Each metadata row links an image to its prompt, seed, format, checkpoint provenance, raw scientific artifacts, and flattened metric values.
|
| 63 |
- `raw/` contains `decoded_float32.npy`, `final_latent_float32.npy`, `trajectory.npz`, and capture `metadata.json` for every scored run.
|
| 64 |
- `metrics/` contains raw per-image, per-parameter, paired-statistics, summary, trajectory, latency, and performance tables.
|
| 65 |
- `comparison_sheets/` contains eight-format sheets, BF16-relative difference maps, and automatically selected detail crops.
|
checksums/SHA256SUMS
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
-
|
| 2 |
38d9694f003d651d39799317c174d65cb27784ac8042f60ad9189c138172353a .gitignore
|
| 3 |
afbd7232877f7fb929d8e7a2b3b396a41179a3106ee6c1c99f90aa470062f969 CITATION.cff
|
| 4 |
fe888a3acbf08a05c3e976f76aa635f2a7034d09589955117c890f3f3a05c0a6 LICENSE-CODE
|
| 5 |
10232ffb753de2527c89b1f4a69bb1479e846892c3b3e26a8550866d0f0fe440 LICENSE-DATA
|
| 6 |
-
|
| 7 |
7860f02cff561fc62a93cabc452ea76a20452063e8207f97fecedb1a74fbadb2 TECHNICAL_REPORT.md
|
| 8 |
f020293711e8ad7eab2758442e5479b39648cd6c725fd076403f66a029c60b5c comparison_sheets/complete.json
|
| 9 |
d71bfb4a773b3998636d68998ad885b52907b285a703cb2348976f4b613ba4de comparison_sheets/contact_sheet_replicate0.png
|
|
@@ -98,6 +98,7 @@ a1495f17df7382e30c740db4d07574f34e5e31cb20020ac7fc9f71a4fea002bb comparison_she
|
|
| 98 |
b2705f64ed3fca264b0e7d6c6d3a01fa2f977477fd0a19ca94537552b5bba036 comparison_sheets/full/p15_scientific_poster__r0.png
|
| 99 |
d3d58661e35a3b4b6b0c4fe11f6f09f2c66dab482c89f4264a872806e3ead10a comparison_sheets/full/p15_scientific_poster__r1.png
|
| 100 |
a4335e2c6da478e4eab3e2ccaa933553d0b4810179064893b57ed52001a1677a comparison_sheets/index.json
|
|
|
|
| 101 |
fd760338f2c01688676cd31a47421de131674706ae9d18b364bc5d5346ce6de2 data/train/images/bf16/p01_portrait__r0__bf16.png
|
| 102 |
5f332fe49f9202be8ebc0d43f122fcf1725a384fcfa9d14a5caee0471f005e08 data/train/images/bf16/p01_portrait__r1__bf16.png
|
| 103 |
55fb84113e54887184c8f216ac376cb6af3f311f2a44b4dbb8a24861576d5014 data/train/images/bf16/p02_hands_group__r0__bf16.png
|
|
@@ -338,7 +339,7 @@ da70a8d418a91f55751116780c301800932b6d63d33854ebeb5172b573f3308e data/train/ima
|
|
| 338 |
e3d89d39b4b38950bb231b8c832aa0993f3acaddb8f96eaab86de65a7e892776 data/train/images/nvfp4/p14_spatial_counts__r1__nvfp4.png
|
| 339 |
48ceeafe80e131505c285c415b07fb3992c2e81414f480dba501cf4cecc983df data/train/images/nvfp4/p15_scientific_poster__r0__nvfp4.png
|
| 340 |
5d02dc85e0917b273aed6ae1870e91477d2d25f1a5bc2d491b8f2810160f9253 data/train/images/nvfp4/p15_scientific_poster__r1__nvfp4.png
|
| 341 |
-
|
| 342 |
ad7fcb76448f0e1b5d8b8ce4f8be0d5098c547df11dbf593acd8cbd3e2b7fc2b metrics/analysis_advanced_complete.json
|
| 343 |
a236850178c844a95dee1f2584fe4d6e9b79c640ee3412df6e527fc5bd46444e metrics/analysis_core_complete.json
|
| 344 |
2881b83ffe14a855ad536d10b028abfa5e73f56798083de0b389b252c3543500 metrics/image_advanced.csv
|
|
@@ -1358,9 +1359,10 @@ b2482808ae8ad7dc723bbee028d76650909449bf03b19118f046a3e9f0721ea7 reproduction/b
|
|
| 1358 |
e77eff0f644162b32fdbb19e0787b1381a007b41897a4bacb9b47c18791b6a4d reproduction/benchmark/workflows/krea2_benchmark_interactive_gguf.json
|
| 1359 |
150a133f4ff5508ca9828fd436fd3db854fbc7218c8fcd9217395eabdb51e3b3 reproduction/download_models.py
|
| 1360 |
ac43fe8c1625b5754ab3d829591758a50607320f4f694c32784e5ce026c2bc59 reproduction/requirements-release.txt
|
| 1361 |
-
|
|
|
|
| 1362 |
15a332d8bd9031c64539d7bd64df1f55619987ae9e07d06540585fc302d8ac82 scripts/upload_to_huggingface.py
|
| 1363 |
-
|
| 1364 |
99eb77d4339d532e6fc11cfd50cd55b4f8db54f58f1ddcd93cf74361a9252012 tables/decision_table.csv
|
| 1365 |
74f759089450fe7f074d67a389988251422d78260bdd728d040cf7fde7a365fb tables/format_ranking.csv
|
| 1366 |
1434a8b74c4e55dc0dcbe7b0aac9fae34c4fc8fc088051724aaf3b139fc7392c tables/metadata_schema.json
|
|
|
|
| 1 |
+
26dd9f691c984a8676e4ff0dccf50239d35c174e863d6884c3d43818b0ab577c .gitattributes
|
| 2 |
38d9694f003d651d39799317c174d65cb27784ac8042f60ad9189c138172353a .gitignore
|
| 3 |
afbd7232877f7fb929d8e7a2b3b396a41179a3106ee6c1c99f90aa470062f969 CITATION.cff
|
| 4 |
fe888a3acbf08a05c3e976f76aa635f2a7034d09589955117c890f3f3a05c0a6 LICENSE-CODE
|
| 5 |
10232ffb753de2527c89b1f4a69bb1479e846892c3b3e26a8550866d0f0fe440 LICENSE-DATA
|
| 6 |
+
59717bd9aeefec2b035370c1bde0c0dbb4dd5e5a5bdb1465bfac523b2259883b README.md
|
| 7 |
7860f02cff561fc62a93cabc452ea76a20452063e8207f97fecedb1a74fbadb2 TECHNICAL_REPORT.md
|
| 8 |
f020293711e8ad7eab2758442e5479b39648cd6c725fd076403f66a029c60b5c comparison_sheets/complete.json
|
| 9 |
d71bfb4a773b3998636d68998ad885b52907b285a703cb2348976f4b613ba4de comparison_sheets/contact_sheet_replicate0.png
|
|
|
|
| 98 |
b2705f64ed3fca264b0e7d6c6d3a01fa2f977477fd0a19ca94537552b5bba036 comparison_sheets/full/p15_scientific_poster__r0.png
|
| 99 |
d3d58661e35a3b4b6b0c4fe11f6f09f2c66dab482c89f4264a872806e3ead10a comparison_sheets/full/p15_scientific_poster__r1.png
|
| 100 |
a4335e2c6da478e4eab3e2ccaa933553d0b4810179064893b57ed52001a1677a comparison_sheets/index.json
|
| 101 |
+
08b9c4cb964aed1251a1835eda6943397cdf94dac89e14161086761a743b94d6 data/train-00000-of-00001.parquet
|
| 102 |
fd760338f2c01688676cd31a47421de131674706ae9d18b364bc5d5346ce6de2 data/train/images/bf16/p01_portrait__r0__bf16.png
|
| 103 |
5f332fe49f9202be8ebc0d43f122fcf1725a384fcfa9d14a5caee0471f005e08 data/train/images/bf16/p01_portrait__r1__bf16.png
|
| 104 |
55fb84113e54887184c8f216ac376cb6af3f311f2a44b4dbb8a24861576d5014 data/train/images/bf16/p02_hands_group__r0__bf16.png
|
|
|
|
| 339 |
e3d89d39b4b38950bb231b8c832aa0993f3acaddb8f96eaab86de65a7e892776 data/train/images/nvfp4/p14_spatial_counts__r1__nvfp4.png
|
| 340 |
48ceeafe80e131505c285c415b07fb3992c2e81414f480dba501cf4cecc983df data/train/images/nvfp4/p15_scientific_poster__r0__nvfp4.png
|
| 341 |
5d02dc85e0917b273aed6ae1870e91477d2d25f1a5bc2d491b8f2810160f9253 data/train/images/nvfp4/p15_scientific_poster__r1__nvfp4.png
|
| 342 |
+
35d2c757a7b7ce928c2326e094821adf7fbbf0cfb338b6e0800af1030ac0529f data/train/metadata.jsonl
|
| 343 |
ad7fcb76448f0e1b5d8b8ce4f8be0d5098c547df11dbf593acd8cbd3e2b7fc2b metrics/analysis_advanced_complete.json
|
| 344 |
a236850178c844a95dee1f2584fe4d6e9b79c640ee3412df6e527fc5bd46444e metrics/analysis_core_complete.json
|
| 345 |
2881b83ffe14a855ad536d10b028abfa5e73f56798083de0b389b252c3543500 metrics/image_advanced.csv
|
|
|
|
| 1359 |
e77eff0f644162b32fdbb19e0787b1381a007b41897a4bacb9b47c18791b6a4d reproduction/benchmark/workflows/krea2_benchmark_interactive_gguf.json
|
| 1360 |
150a133f4ff5508ca9828fd436fd3db854fbc7218c8fcd9217395eabdb51e3b3 reproduction/download_models.py
|
| 1361 |
ac43fe8c1625b5754ab3d829591758a50607320f4f694c32784e5ce026c2bc59 reproduction/requirements-release.txt
|
| 1362 |
+
56ecc0611beb0a2ed147b3eed17da521b2c21c0394776082ced988ec8ae63dc7 scripts/build_parquet.py
|
| 1363 |
+
b393da3601e6cc985e4db4f392260ff26ea760e63a0d818bedf4ae7c39d82acf scripts/prepare_release.py
|
| 1364 |
15a332d8bd9031c64539d7bd64df1f55619987ae9e07d06540585fc302d8ac82 scripts/upload_to_huggingface.py
|
| 1365 |
+
003d039c79e007f6d36cb46279ae2cd1d5509200b4c3ad13d2f3faa28651c878 scripts/validate_release.py
|
| 1366 |
99eb77d4339d532e6fc11cfd50cd55b4f8db54f58f1ddcd93cf74361a9252012 tables/decision_table.csv
|
| 1367 |
74f759089450fe7f074d67a389988251422d78260bdd728d040cf7fde7a365fb tables/format_ranking.csv
|
| 1368 |
1434a8b74c4e55dc0dcbe7b0aac9fae34c4fc8fc088051724aaf3b139fc7392c tables/metadata_schema.json
|
data/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08b9c4cb964aed1251a1835eda6943397cdf94dac89e14161086761a743b94d6
|
| 3 |
+
size 277020290
|
scripts/build_parquet.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
import pyarrow.parquet as pq
|
| 7 |
+
from datasets import load_dataset
|
| 8 |
+
from datasets.table import embed_table_storage
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def main() -> int:
|
| 12 |
+
parser = argparse.ArgumentParser(description="Build a viewer-friendly Parquet split with embedded images")
|
| 13 |
+
parser.add_argument("--root", type=Path, default=Path(__file__).resolve().parents[1])
|
| 14 |
+
parser.add_argument("--out", type=Path, default=None, help="Output parquet path")
|
| 15 |
+
parser.add_argument("--row-group-size", type=int, default=100)
|
| 16 |
+
args = parser.parse_args()
|
| 17 |
+
root = args.root.resolve()
|
| 18 |
+
out = args.out or (root / "data" / "train-00000-of-00001.parquet")
|
| 19 |
+
out.parent.mkdir(parents=True, exist_ok=True)
|
| 20 |
+
|
| 21 |
+
dataset = load_dataset(str(root), split="train")
|
| 22 |
+
ordered = ["image"] + [name for name in dataset.column_names if name != "image"]
|
| 23 |
+
dataset = dataset.select_columns(ordered)
|
| 24 |
+
|
| 25 |
+
table = dataset.with_format("arrow")[:]
|
| 26 |
+
table = embed_table_storage(table)
|
| 27 |
+
|
| 28 |
+
writer = pq.ParquetWriter(str(out), table.schema)
|
| 29 |
+
try:
|
| 30 |
+
for batch in table.to_batches(max_chunksize=args.row_group_size):
|
| 31 |
+
writer.write_batch(batch, row_group_size=args.row_group_size)
|
| 32 |
+
finally:
|
| 33 |
+
writer.close()
|
| 34 |
+
|
| 35 |
+
check = pq.read_table(str(out))
|
| 36 |
+
first = check.column("image")[0].as_py()
|
| 37 |
+
embedded = isinstance(first, dict) and first.get("bytes") is not None
|
| 38 |
+
print(
|
| 39 |
+
f"wrote {out} ({out.stat().st_size / 1024**2:.2f} MiB, {check.num_rows} rows, "
|
| 40 |
+
f"{check.metadata.num_row_groups if hasattr(check, 'metadata') else 'n/a'}); "
|
| 41 |
+
f"images_embedded={embedded}"
|
| 42 |
+
)
|
| 43 |
+
return 0 if embedded else 1
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
if __name__ == "__main__":
|
| 47 |
+
raise SystemExit(main())
|
scripts/prepare_release.py
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scripts/validate_release.py
CHANGED
|
@@ -77,6 +77,8 @@ def main() -> int:
|
|
| 77 |
required_paths.append(path)
|
| 78 |
fail(not path.is_file(), f"missing {key}: {path}", errors)
|
| 79 |
fail(len(list((root / "data" / "train" / "images").rglob("*.png"))) != expected_rows, f"expected {expected_rows} PNG images", errors)
|
|
|
|
|
|
|
| 80 |
fail(len(list((root / "raw").rglob("*.npy"))) != expected_rows * 2, f"expected {expected_rows * 2} NPY files", errors)
|
| 81 |
fail(len(list((root / "raw").rglob("*.npz"))) != expected_rows, f"expected {expected_rows} NPZ files", errors)
|
| 82 |
fail(len(list((root / "comparison_sheets").rglob("*.*"))) != 93, "expected 93 comparison artifacts", errors)
|
|
@@ -149,14 +151,24 @@ def main() -> int:
|
|
| 149 |
fail(not path.is_file(), f"checksum target missing: {relative}", errors)
|
| 150 |
if path.is_file():
|
| 151 |
fail(checksum(path) != expected, f"checksum mismatch: {relative}", errors)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
try:
|
| 153 |
from datasets import load_dataset
|
| 154 |
|
| 155 |
dataset = load_dataset(str(root), split="train")
|
| 156 |
-
fail(dataset.num_rows != expected_rows, f"
|
|
|
|
| 157 |
_ = dataset[0]["image"]
|
| 158 |
except Exception as exc:
|
| 159 |
-
errors.append(f"
|
| 160 |
try:
|
| 161 |
import yaml
|
| 162 |
|
|
|
|
| 77 |
required_paths.append(path)
|
| 78 |
fail(not path.is_file(), f"missing {key}: {path}", errors)
|
| 79 |
fail(len(list((root / "data" / "train" / "images").rglob("*.png"))) != expected_rows, f"expected {expected_rows} PNG images", errors)
|
| 80 |
+
parquet_path = root / "data" / "train-00000-of-00001.parquet"
|
| 81 |
+
fail(not parquet_path.is_file(), f"missing viewer parquet: {parquet_path}", errors)
|
| 82 |
fail(len(list((root / "raw").rglob("*.npy"))) != expected_rows * 2, f"expected {expected_rows * 2} NPY files", errors)
|
| 83 |
fail(len(list((root / "raw").rglob("*.npz"))) != expected_rows, f"expected {expected_rows} NPZ files", errors)
|
| 84 |
fail(len(list((root / "comparison_sheets").rglob("*.*"))) != 93, "expected 93 comparison artifacts", errors)
|
|
|
|
| 151 |
fail(not path.is_file(), f"checksum target missing: {relative}", errors)
|
| 152 |
if path.is_file():
|
| 153 |
fail(checksum(path) != expected, f"checksum mismatch: {relative}", errors)
|
| 154 |
+
try:
|
| 155 |
+
import pyarrow.parquet as pq
|
| 156 |
+
|
| 157 |
+
parquet_file = pq.ParquetFile(str(parquet_path))
|
| 158 |
+
fail(parquet_file.metadata.num_rows != expected_rows, f"parquet rows: {parquet_file.metadata.num_rows}", errors)
|
| 159 |
+
first_image = parquet_file.read_row_group(0, columns=["image"]).column("image")[0].as_py()
|
| 160 |
+
fail(not (isinstance(first_image, dict) and first_image.get("bytes")), "parquet image column is not embedded", errors)
|
| 161 |
+
except Exception as exc:
|
| 162 |
+
errors.append(f"parquet inspection failed: {exc}")
|
| 163 |
try:
|
| 164 |
from datasets import load_dataset
|
| 165 |
|
| 166 |
dataset = load_dataset(str(root), split="train")
|
| 167 |
+
fail(dataset.num_rows != expected_rows, f"dataset rows: {dataset.num_rows}", errors)
|
| 168 |
+
fail("image" not in dataset.features, "dataset is missing the image feature", errors)
|
| 169 |
_ = dataset[0]["image"]
|
| 170 |
except Exception as exc:
|
| 171 |
+
errors.append(f"dataset load failed: {exc}")
|
| 172 |
try:
|
| 173 |
import yaml
|
| 174 |
|