Datasets:
image imagewidth (px) 630 900 | sample_id stringlengths 27 38 | domain stringclasses 6
values | difficulty stringclasses 3
values | paper_partition stringclasses 2
values | width int32 630 900 | height int32 630 900 | num_nodes int32 6 23 | num_edges int32 4 35 | nodes listlengths 6 23 | edges listlengths 4 35 | annotation_json stringlengths 14.2k 108k | image_path stringlengths 59 81 | annotation_path stringlengths 65 87 | image_sha256 stringlengths 64 64 | annotation_sha256 stringlengths 64 64 | original_annotation_sha256 stringlengths 64 64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
circuit_train_medium_000002 | circuit | medium | train | 900 | 630 | 10 | 11 | [
{
"id": "n1",
"name": "driver chip",
"box": [
294,
75,
364,
154
]
},
{
"id": "n2",
"name": "Relay",
"box": [
538,
75,
608,
154
]
},
{
"id": "n3",
"name": "Ground",
"box": [
42,
114,
112,
193
... | [
{
"id": "e1",
"source": "n4",
"target": "n2",
"type": "signal",
"path": [
[
789,
156
],
[
700,
154
],
[
608,
120
]
],
"visible_path": [
[
792,
156
],
[
700,
... | {
"sample_id": "circuit_train_medium_000002",
"image": "images/train/circuit/medium/circuit_train_medium_000002.png",
"split": "train",
"difficulty": "medium",
"orientation": "right_to_left",
"canvas": {
"width": 900,
"height": 630
},
"nodes": [
{
"id": "n1",
"name": "driver chip... | images/train/circuit/medium/circuit_train_medium_000002.png | annotations/train/circuit/medium/circuit_train_medium_000002.json | e841865da22f89692847d9056111737b7329bbccde8280b52834d8b49ce879e5 | 3c60e8474bc7155193cc9d86cb4710fc4a1b53c563ea7bee1428c0b18e204146 | bed7edf7cf9df663b9f8ba54edbd89319f1b3c00e257414ec2015a008737832d | |
circuit_train_medium_000005 | circuit | medium | train | 630 | 900 | 12 | 16 | [
{
"id": "n2",
"name": "HALL SENSOR",
"box": [
417,
29,
466,
142
]
},
{
"id": "n1",
"name": "Dc Jack",
"box": [
155,
31,
204,
144
]
},
{
"id": "n3",
"name": "light sensor",
"box": [
97,
254,
146,
... | [
{
"id": "e1",
"source": "n1",
"target": "n4",
"type": "power",
"path": [
[
193,
144
],
[
227,
248
]
],
"visible_path": [
[
192,
141
],
[
228,
251
]
]
},
{
"id": "e2... | {
"sample_id": "circuit_train_medium_000005",
"image": "images/train/circuit/medium/circuit_train_medium_000005.png",
"split": "train",
"difficulty": "medium",
"orientation": "top_to_bottom",
"canvas": {
"width": 630,
"height": 900
},
"nodes": [
{
"id": "n2",
"name": "HALL SENSOR... | images/train/circuit/medium/circuit_train_medium_000005.png | annotations/train/circuit/medium/circuit_train_medium_000005.json | cb24fec8703fd54afe9cc7b2cc776f3bf9ba86d1f77c001575bb595db69d0a36 | 7c71384e1283252d803fc4a4447457dff241d90087e587080da4d1220153a996 | a13fb7c4ef7677db1552b679ad7ed5b20b603cfff97981fdc7d3239f25cb51f1 | |
circuit_train_medium_000006 | circuit | medium | train | 630 | 900 | 11 | 15 | [
{
"id": "n1",
"name": "Ground",
"box": [
159,
34,
209,
147
]
},
{
"id": "n2",
"name": "Op Amp X",
"box": [
418,
30,
467,
143
]
},
{
"id": "n3",
"name": "Thermistor 1",
"box": [
112,
255,
161,
... | [
{
"id": "e1",
"source": "n10",
"target": "n6",
"type": "signal",
"path": [
[
173,
707
],
[
147,
652
],
[
137,
589
]
],
"visible_path": [
[
174,
710
],
[
147,
... | {
"sample_id": "circuit_train_medium_000006",
"image": "images/train/circuit/medium/circuit_train_medium_000006.png",
"split": "train",
"difficulty": "medium",
"orientation": "bottom_to_top",
"canvas": {
"width": 630,
"height": 900
},
"nodes": [
{
"id": "n1",
"name": "Ground",
... | images/train/circuit/medium/circuit_train_medium_000006.png | annotations/train/circuit/medium/circuit_train_medium_000006.json | d2157cabfbb12156cdd97bb6ca1cfb485911ea287050c68be50ff6b00a2501a2 | 2cdd37d4c8efa9c2591a9863bd33628f9e40ec7bd3d80cbb29a452a19910eb8f | 069f9a10fb75ae60d1fc85dd3dba60a2976b3c4e7967e829e83e5629f759e96c | |
circuit_train_medium_000008 | circuit | medium | train | 900 | 630 | 11 | 12 | [{"id":"n2","name":"RELAY","box":[292.0,144.0,363.0,224.0]},{"id":"n3","name":"SWITCH","box":[538.0,(...TRUNCATED) | [{"id":"e1","source":"n4","target":"n3","type":"signal","path":[[786.0,208.0],[698.0,191.0],[608.0,1(...TRUNCATED) | "{\n \"sample_id\": \"circuit_train_medium_000008\",\n \"image\": \"images/train/circuit/medium/ci(...TRUNCATED) | images/train/circuit/medium/circuit_train_medium_000008.png | annotations/train/circuit/medium/circuit_train_medium_000008.json | 77b3cdd76033b0919f136b5a38e2aaeae7401a0204db836f08ac47155622d40c | d597f7fa416c177a5942068f5f15a9cebf492845cb042bad0bafb79be1c8d082 | aabd43add442ff21e76f5a25ebe6e04d606731c5911cf41be209774e90d6dded | |
circuit_train_medium_000009 | circuit | medium | train | 630 | 900 | 13 | 15 | [{"id":"n3","name":"fuse","box":[457.0,87.0,507.0,200.0]},{"id":"n1","name":"jumper","box":[112.0,91(...TRUNCATED) | [{"id":"e1","source":"n1","target":"n4","type":"signal","path":[[132.0,204.0],[125.0,316.0]],"visibl(...TRUNCATED) | "{\n \"sample_id\": \"circuit_train_medium_000009\",\n \"image\": \"images/train/circuit/medium/ci(...TRUNCATED) | images/train/circuit/medium/circuit_train_medium_000009.png | annotations/train/circuit/medium/circuit_train_medium_000009.json | 221e2ec5ddeb1167534b9d8c06b9bd1f2b3128fcaf6d189f37aa9c3c42f69891 | b0781e194b326ded5a54b1aac78af423531712f04a9df734053405881148a5a8 | 27ca88778407ed2aa23bf581c272f0ed67b5737717c6f14849d41e9614fd282e | |
circuit_train_medium_000010 | circuit | medium | train | 630 | 900 | 13 | 16 | [{"id":"n1","name":"FAN X","box":[117.0,92.0,166.0,206.0]},{"id":"n2","name":"SERVO MOTOR","box":[29(...TRUNCATED) | [{"id":"e1","source":"n12","target":"n8","type":"wire","path":[[140.0,767.0],[152.0,715.0],[142.0,64(...TRUNCATED) | "{\n \"sample_id\": \"circuit_train_medium_000010\",\n \"image\": \"images/train/circuit/medium/ci(...TRUNCATED) | images/train/circuit/medium/circuit_train_medium_000010.png | annotations/train/circuit/medium/circuit_train_medium_000010.json | dac1c80d72ce58db63316a559d78dede0ced07709d9c72b12372a23ce77204f8 | 1b74be91f30dbe6a486458018212b54ac5c19afc4e4844fb61eed29a58b22558 | cabc14e0a98fd82a71922d541f15e1cfe67332b4871acf826651de9f45571803 | |
circuit_train_medium_000012 | circuit | medium | train | 630 | 900 | 12 | 11 | [{"id":"n3","name":"Boost Converter Y","box":[457.0,23.0,507.0,137.0]},{"id":"n1","name":"LIGHT SENS(...TRUNCATED) | [{"id":"e1","source":"n1","target":"n4","type":"wire","path":[[142.0,143.0],[132.0,200.0],[139.0,254(...TRUNCATED) | "{\n \"sample_id\": \"circuit_train_medium_000012\",\n \"image\": \"images/train/circuit/medium/ci(...TRUNCATED) | images/train/circuit/medium/circuit_train_medium_000012.png | annotations/train/circuit/medium/circuit_train_medium_000012.json | b2d43054742014dad1250cbf595d608ef069031da0444c650e536a17dc1257c9 | ed366be5c90b9b63fb7d7d8d43bf73190e4d086278b5bd798a58f7fb4fc5d24a | 7bb2edfd249c36c5af757388674ecac9296e24ae2e19a4e824c1b91c457717b4 | |
circuit_train_medium_000013 | circuit | medium | train | 630 | 900 | 12 | 16 | [{"id":"n1","name":"Ground Y","box":[111.0,27.0,160.0,140.0]},{"id":"n3","name":"ground C","box":[45(...TRUNCATED) | [{"id":"e1","source":"n11","target":"n9","type":"signal","path":[[201.0,706.0],[228.0,594.0]],"visib(...TRUNCATED) | "{\n \"sample_id\": \"circuit_train_medium_000013\",\n \"image\": \"images/train/circuit/medium/ci(...TRUNCATED) | images/train/circuit/medium/circuit_train_medium_000013.png | annotations/train/circuit/medium/circuit_train_medium_000013.json | 865dc196415d2a39351bcc7e8753a54bc1552da7361f7b6e2693d63c36ee7ec8 | bac5fa146aa00cc77a404d2caa91597362340ea763dbbad84876ea8788290443 | d9181287b61b559e71def30c08091bc91f46fd1015aaaf9141744d3d8a89c135 | |
circuit_train_medium_000014 | circuit | medium | train | 900 | 630 | 12 | 16 | [{"id":"n1","name":"Polarized Capacitor 2","box":[294.0,55.0,364.0,134.0]},{"id":"n2","name":"Compar(...TRUNCATED) | [{"id":"e1","source":"n3","target":"n1","type":"wire","path":[[112.0,156.0],[202.0,142.0],[294.0,105(...TRUNCATED) | "{\n \"sample_id\": \"circuit_train_medium_000014\",\n \"image\": \"images/train/circuit/medium/ci(...TRUNCATED) | images/train/circuit/medium/circuit_train_medium_000014.png | annotations/train/circuit/medium/circuit_train_medium_000014.json | b3ee302f13d715ef1a5d4664a317a11c9476f8410db52fc7003656cd77685c46 | 74018a0f18c33f39db11c5bde99e88e2e7f258dc9aaec122c7dab52d7f761d2f | 85dbe9b56ee65afbe183e758ff2c541a9070eb6ab14e054a9daf15441952415c | |
circuit_train_medium_000015 | circuit | medium | train | 630 | 900 | 12 | 17 | [{"id":"n1","name":"Humidity Sensor C","box":[158.0,32.0,207.0,146.0]},{"id":"n2","name":"jumper","b(...TRUNCATED) | [{"id":"e1","source":"n1","target":"n3","type":"signal","path":[[169.0,146.0],[157.0,211.0],[133.0,2(...TRUNCATED) | "{\n \"sample_id\": \"circuit_train_medium_000015\",\n \"image\": \"images/train/circuit/medium/ci(...TRUNCATED) | images/train/circuit/medium/circuit_train_medium_000015.png | annotations/train/circuit/medium/circuit_train_medium_000015.json | 27e4555bd2a32c36980130c67e65112b71d8b29f62ba12c135b2ff8fc395794e | d75a1d6d2e9b5117928bfc412b2b0250210e83d470e4fa7ab38f9a3ef4b0b928 | 66d8e97dd7902f53d1aa3f9f48ffad0a495602d3effd65ee9ce76c2edb5d9583 |
A six-domain benchmark for extracting topology structure from diagrams.
Dataset · Quickstart · Annotations · Code and Assets · Citation
Knossos provides 18,000 training diagrams and 1,200 test diagrams with node labels and bounding boxes, typed connections, and connector geometry across six domains.
Dataset Overview
| Domain | Train | Test |
|---|---|---|
| Food Web | 3,000 | 200 |
| Network | 3,000 | 200 |
| Workflow | 3,000 | 200 |
| Natural Process | 3,000 | 200 |
| Circuit | 3,000 | 200 |
| Map Route | 3,000 | 200 |
| Total | 18,000 | 1,200 |
Quickstart
pip install datasets pillow
from datasets import load_dataset
data = load_dataset("WayneGuo0011/Knossos", "default")
example = data["test"][0]
example["image"].save("example.png")
print(example["nodes"], example["edges"])
To load a single domain, replace "default" with
"foodweb", "network", "workflow", "natural_process",
"circuit", or "map_route". Add streaming=True to read samples without
downloading the full dataset.
Annotations
| Field | Contents |
|---|---|
sample_id |
Stable sample identifier |
image |
Original PNG image |
domain, difficulty |
Domain and simple/medium/difficult level |
width, height |
Image dimensions in pixels |
nodes |
Node IDs, visible names, and [x1, y1, x2, y2] boxes |
edges |
Source/target IDs, relation types, and connector paths |
annotation_json |
Complete annotation, including graph targets and geometry |
Coordinates are in original-image pixels, with the origin at the top left.
Edge endpoints reference node IDs rather than names. The complete annotation
preserves direction and arrowhead information, negative edges, final_graph,
think_graph, and training_text. SHA-256 fields accompany each image and
published annotation.
Code and Assets
Generation, training, inference, and evaluation code is available in the Knossos & Ariadne GitHub repository.
| Directory | Contents |
|---|---|
data/ |
Image-and-annotation Parquet shards |
full_experiments/manifests/ |
Compressed NODE, EDGE, and TRACE task records |
generator/ |
Rendering and screening code |
renderer_assets/ |
Frozen visual asset pools |
tools/ |
Graph and geometry scoring |
sft_train/, configs/ |
Training code and model configurations |
Download individual PNG/JSON files and renderer assets
Download the repository, then export the images, annotations, and task manifests:
hf download WayneGuo0011/Knossos --repo-type dataset --local-dir Knossos
cd Knossos
pip install -r requirements.txt
python export_dataset.py --output selected_dataset --manifests
The hf command is available through pip install huggingface_hub.
Extract the renderer pools into the generator directory:
for archive in renderer_assets/*.tar.gz; do
tar -xzf "$archive" -C generator
done
Generation and Scope
Diagrams are procedurally rendered from generated graph structures and visual assets, followed by visual quality screening. Annotations derive from the rendered scene. The generator configuration records domain settings and seeds; new API-generated assets need not reproduce the released images.
This is an in-distribution benchmark with shared labels, assets, and graph families across splits. In the original split, 26 Network test scenes have training counterparts with identical graph and geometry but different rendering details; the original samples are retained here for reproducibility.
Citation
Please cite the following papers when using this resource:
@misc{guo2026knossos,
title={Knossos and Ariadne: Benchmarking and Learning Complete Diagram Topology Extraction with Vision-Language Models},
author={Bangwei Guo and Xujiang Zhao and Shengyu Chen and Yanchi Liu and Wei Cheng and Xi Zhu and Guoning Zhang and Dimitris N. Metaxas and Haifeng Chen},
year={2026},
eprint={2610.04721},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2610.04721}
}
@article{guo2026topoagent,
title={TopoAgent: A Structure-Aware Perception-to-Reasoning Framework for Diagram-to-Graph Topology Extraction with Large Vision-Language Models},
author={Guo, Bangwei and Zhao, Xujiang and Liu, Yanchi and Cheng, Wei and Chen, Shengyu and Li, Dongyue and Morimoto, Masaharu and Kuroda, Takayuki and Metaxas, Dimitris and Chen, Haifeng},
journal={arXiv preprint arXiv:2608.28701},
year={2026}
}
License
Images, annotations, manifests, and renderer assets are released under CC BY 4.0. Code uses the MIT License. Attribute the dataset to the Knossos contributors. Upstream model terms remain separate from the data license.
- Downloads last month
- 766

