Datasets:
Add files using upload-large-folder tool
Browse filesFiles changed (11)
- README.md+33-43
- data/benchmark-00000-of-00001.parquetAdded+3
- data/train-00000-of-00009.parquetAdded+3
- data/train-00001-of-00009.parquetAdded+3
- data/train-00002-of-00009.parquetAdded+3
- data/train-00003-of-00009.parquetAdded+3
- data/train-00004-of-00009.parquetAdded+3
- data/train-00005-of-00009.parquetAdded+3
- data/train-00006-of-00009.parquetAdded+3
- data/train-00007-of-00009.parquetAdded+3
- data/train-00008-of-00009.parquetAdded+3
17 unmodified lines181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818213 unmodified lines9697989910010110210310410510610710810917 unmodified lines- multimodalsize_categories:- 10K<n<100K---# StructHub**StructHub** is a large-scale dataset of **structured images paired with their editableSVG / XML source code**, built for the *image-to-SVG* (and *text-to-SVG*) task introducedin **Back2Struct: Making Structured Images Editable Again**. Each raster image (a diagram,chart, flowchart, architecture figure, UML diagram, schema, etc.) is paired with**object-level** vector code that explicitly encodes text, shapes, topology, and layout βsupporting supervised and reward-based training for models that "make structured imageseditable again."- π Paper: *Back2Struct: Making Structured Images Editable Again*- π Project page: https://pengyu965.github.io/Back2Struct.github.io/- π€ Model: [`Pengyu965/Back2Struct-Image2SVG-7B`](https://huggingface.co/Pengyu965/Back2Struct-Image2SVG-7B)## Composition| Subset | Train (full) | Train (β€ 8,192 tok) | Retention | Benchmark ||--------|-------------:|--------------------:|----------:|----------:|| **StarDiag-HQ** | 52,875 | 52,875 | 100.0% | 569 || **OpenDiag** | 27,953 | 18,800 | 67.3% | 334 || **NNArch** | 3,293 | 1,453 | 46.6% | 97 || **Total** | **84,121** | **73,128** | **86.9%** | **1,000** |- **StarDiag-HQ** β high-quality synthetic structured diagrams.- **OpenDiag** β crawled open-domain structured graphics (broad style/topic coverage).- **NNArch** β neural-network / system architecture diagrams (long, complex SVGs).Training uses examples with **β€ 8,192 tokens** of ground-truth SVG (73,128 pairs) forstable long-context generation.## StructHub Benchmark (1,000 samples)A held-out **1,000-sample** evaluation benchmark (569 StarDiag-HQ + 334 OpenDiag +97 NNArch), split by ground-truth SVG length into three difficulty tiers:| Tier | GT SVG length | # samples ||------|---------------|----------:|| Easy | β€ 2,048 tokens | 333 || Medium | 2,048 β 4,096 tokens | 333 || Hard | > 4,096 tokens | 334 |This enables evaluation across levels of structural complexity.## Data fieldsEach example contains:| Field | Type | Description ||-------|------|-------------|| `id` | string | Unique example id (source-prefixed, e.g. `starvector_β¦`, `crawled_β¦`) || `image` | image | The rendered structured raster image (input) || `svg` | string | Ground-truth object-level SVG / XML code (target) || `source` | string | `StarDiag-HQ` \| `OpenDiag` \| `NNArch` || `num_tokens` | int | Token length of the ground-truth SVG || `difficulty` | string | `easy` \| `medium` \| `hard` (benchmark split only) |> Adjust the field names above to match the files you upload.## Usage13 unmodified linesPredictions are scored with **image-level** metrics (render success rate, DINOv2 similarity,LPIPS, SSIM between the rendered prediction and the input image) and a **text-level**GPTScore over the SVG code (Structure / Flow / Style, 0β5 each; Overall 0β100). See thepaper for the render-gated evaluation protocol.## LicensingStructHub aggregates multiple sources, including crawled open-domain graphics. Per-sourceterms may differ; the dataset is released for **research use**. Please review and respect thelicenses of the original content. *(Confirm and update this field before publishing.)*## Citation17 unmodified lines181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727313 unmodified lines8788899091929394959697989917 unmodified lines- multimodalsize_categories:- 10K<n<100Kconfigs:- config_name: defaultdata_files:- split: trainpath: data/train-*.parquet- split: benchmarkpath: data/benchmark-*.parquet---# StructHub**StructHub** is a large-scale dataset of **structured images paired with their editableSVG / XML source code**, for the *image-to-SVG* task introduced in**Back2Struct: Making Structured Images Editable Again**. Each raster image (a diagram,chart, flowchart, architecture figure, UML diagram, schema, etc.) is paired with**object-level** vector code that explicitly encodes text, shapes, topology, and layout.- π Paper: *Back2Struct: Making Structured Images Editable Again*- π Project page: https://pengyu965.github.io/Back2Struct.github.io/- π€ Model: [`Pengyu965/Back2Struct-Image2SVG-7B`](https://huggingface.co/Pengyu965/Back2Struct-Image2SVG-7B)## Splits| Split | Description | # examples ||-------|-------------|-----------:|| `train` | Full StructHub training set (all sources, all token lengths), with the benchmark held out | 86,102 || `benchmark` | Held-out StructHub evaluation benchmark | 1,000 |Sources are combined into single splits (no per-source or per-difficulty division).`source` and `token_count` are kept as columns for optional filtering.## Fields| Field | Type | Description ||-------|------|-------------|| `id` | string | Unique example id (source-prefixed, e.g. `starvector_β¦`, `crawled_β¦`, `nn_diagram_β¦`) || `source` | string | `starvector` \| `crawled` \| `nn_diagram` || `token_count` | int32 | Token length of the ground-truth SVG || `image` | image | The rendered structured raster image (input; PNG, embedded) || `svg` | string | Ground-truth object-level SVG / XML code (target) |## BenchmarkThe 1,000-sample benchmark draws from all three sources (starvector 569, crawled 334,nn_diagram 97), all with SVGs β€ 8,192 tokens, and is stratified by ground-truth SVG lengthinto easy (β€ 2,048), medium (2,048β4,096), and hard (> 4,096) tiers (333 / 333 / 334).It is the evaluation set for the paper's Tables 2β3.> Note: the benchmark contains 1,000 rows but 997 distinct `id`s (3 rows are exact> duplicates, kept to match the paper's reported count of 1,000).## Usage13 unmodified linesPredictions are scored with **image-level** metrics (render success rate, DINOv2 similarity,LPIPS, SSIM between the rendered prediction and the input image) and a **text-level**GPTScore over the SVG code. See the paper for the render-gated evaluation protocol.## LicensingStructHub aggregates multiple sources, including crawled open-domain graphics. Per-sourceterms may differ; the dataset is released for **research use**. Please review and respect thelicenses of the original content. *(Confirm and update this field before wide distribution.)*## Citation
123version https://git-lfs.github.com/spec/v1oid sha256:485fdb8370503048aeb9e70e3c22b57416eb9432cdc0ebe6fc31c515fb6b692bsize 45711956123version https://git-lfs.github.com/spec/v1oid sha256:f1e96be6ff75e273fb6156596a7738f7888ddbbdd0c81f26a4ef7dab7d5824e9size 701057030123version https://git-lfs.github.com/spec/v1oid sha256:c9161f504ad350e1a69602caad06891747771105048af5356097f46d21fd7305size 721033075123version https://git-lfs.github.com/spec/v1oid sha256:421ee8b2afc3bc7ff15d683f58c0ade8a285225eadf7ec6a5be530e4fe8d8694size 716734988123version https://git-lfs.github.com/spec/v1oid sha256:38d3869a9da8ee90b30d241184df48e084183303c49ae7a1cb1d171e461075c0size 480028468123version https://git-lfs.github.com/spec/v1oid sha256:859af23d8e7ed805e7ef6f84954507f363bd8472b82be50f0c789c1812b9baa1size 390119694123version https://git-lfs.github.com/spec/v1oid sha256:218ba6579240939ec39fe906e26edc49f2e716da89ca4d3841c4838276393183size 398613181123version https://git-lfs.github.com/spec/v1oid sha256:48a4393ac02e21c885799e894b91486204d7aa3d0c357e1f7fad055fa66b042bsize 394730252123version https://git-lfs.github.com/spec/v1oid sha256:15a1db369337f15351e41d9a9ff65f88b61d3465d9af1cacf9486d90ff22714bsize 392596738123version https://git-lfs.github.com/spec/v1oid sha256:3ead6e180d0faf62ec8b54ad63b5a0df57c85527c776fa667b2f4c817808a1eesize 392249858README.md+33-43
data/benchmark-00000-of-00001.parquetAdded+3
data/train-00000-of-00009.parquetAdded+3
data/train-00001-of-00009.parquetAdded+3
data/train-00002-of-00009.parquetAdded+3
data/train-00003-of-00009.parquetAdded+3
data/train-00004-of-00009.parquetAdded+3
data/train-00005-of-00009.parquetAdded+3
data/train-00006-of-00009.parquetAdded+3
data/train-00007-of-00009.parquetAdded+3
data/train-00008-of-00009.parquetAdded+3