Datasets:
id stringlengths 7 7 | image imagewidth (px) 512 512 | record dict | conversations listlengths 12 20 |
|---|---|---|---|
3000000 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
300,
416
],
[
388,
416
]
]
},
{
"class": "outside wall",
"points": [
[
72,
416
],
[
176,
... | [
{
"from": "human",
"value": "<record>\nWhat does E29 represent?"
},
{
"from": "gpt",
"value": "a horizontal window at the top left of the residential floor plan"
},
{
"from": "human",
"value": "What is E21?"
},
{
"from": "gpt",
"value": "a vertical internal wall segment a... | |
3000001 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
248,
488
],
[
352,
488
]
]
},
{
"class": "outside wall",
"points": [
[
184,
24
],
[
184,
... | [
{
"from": "human",
"value": "<record>\nDescribe E7."
},
{
"from": "gpt",
"value": "a horizontal outside wall segment at the bottom right of the architectural plan"
},
{
"from": "human",
"value": "What does E30 represent?"
},
{
"from": "gpt",
"value": "a vertical internal ... | |
3000002 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
240,
360
],
[
380,
360
]
]
},
{
"class": "outside wall",
"points": [
[
240,
152
],
[
380,
... | [
{
"from": "human",
"value": "<record>\nWhat is E0?"
},
{
"from": "gpt",
"value": "a horizontal outside wall segment at the bottom of the apartment layout"
},
{
"from": "human",
"value": "What does E6 represent?"
},
{
"from": "gpt",
"value": "a horizontal external wall seg... | |
3000003 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
196,
40
],
[
328,
40
]
]
},
{
"class": "outside wall",
"points": [
[
196,
40
],
[
196,
... | [
{
"from": "human",
"value": "<record>\nWhat does E10 represent?"
},
{
"from": "gpt",
"value": "a vertical external wall segment at the left of the residential floor plan"
},
{
"from": "human",
"value": "What is E30?"
},
{
"from": "gpt",
"value": "a vertical interior wall ... | |
3000004 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
100,
488
],
[
184,
488
]
]
},
{
"class": "outside wall",
"points": [
[
204,
24
],
[
204,
... | [
{
"from": "human",
"value": "What is E3?\n<record>"
},
{
"from": "gpt",
"value": "a vertical external wall segment at the bottom right of the architectural plan"
},
{
"from": "human",
"value": "What is E36?"
},
{
"from": "gpt",
"value": "a vertical door at the right of th... | |
3000005 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
488,
240
],
[
488,
340
]
]
},
{
"class": "outside wall",
"points": [
[
24,
164
],
[
24,
... | [
{
"from": "human",
"value": "What is E6?\n<record>"
},
{
"from": "gpt",
"value": "a vertical perimeter wall segment at the left of the floorplan"
},
{
"from": "human",
"value": "What does E31 represent?"
},
{
"from": "gpt",
"value": "a horizontal internal door at the top ... | |
3000006 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
24,
180
],
[
24,
260
]
]
},
{
"class": "outside wall",
"points": [
[
24,
260
],
[
72,
... | [
{
"from": "human",
"value": "Describe E39.\n<record>"
},
{
"from": "gpt",
"value": "a vertical internal wall segment at the bottom left of the floorplan"
},
{
"from": "human",
"value": "What is E52?"
},
{
"from": "gpt",
"value": "a vertical interior door at the bottom lef... | |
3000007 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
248,
388
],
[
248,
488
]
]
},
{
"class": "outside wall",
"points": [
[
88,
168
],
[
88,
... | [
{
"from": "human",
"value": "What does E25 represent?\n<record>"
},
{
"from": "gpt",
"value": "a vertical outside wall segment at the top of the apartment layout"
},
{
"from": "human",
"value": "What is E10?"
},
{
"from": "gpt",
"value": "a horizontal exterior wall segmen... | |
3000008 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
140,
120
],
[
308,
120
]
]
},
{
"class": "outside wall",
"points": [
[
476,
252
],
[
476,
... | [
{
"from": "human",
"value": "<record>\nWhat does E26 represent?"
},
{
"from": "gpt",
"value": "a horizontal window opening at the bottom left of the residential floor plan"
},
{
"from": "human",
"value": "What does E28 represent?"
},
{
"from": "gpt",
"value": "a horizonta... | |
3000009 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
208,
404
],
[
352,
404
]
]
},
{
"class": "outside wall",
"points": [
[
352,
348
],
[
352,
... | [
{
"from": "human",
"value": "Describe E2.\n<record>"
},
{
"from": "gpt",
"value": "a horizontal outside wall segment at the bottom left of the architectural plan"
},
{
"from": "human",
"value": "What is E0?"
},
{
"from": "gpt",
"value": "a horizontal external wall segment... | |
3000010 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
488,
100
],
[
488,
260
]
]
},
{
"class": "outside wall",
"points": [
[
24,
76
],
[
168,
... | [
{
"from": "human",
"value": "What is E32?\n<record>"
},
{
"from": "gpt",
"value": "a horizontal partition wall segment at the right of the plan drawing"
},
{
"from": "human",
"value": "Describe E46."
},
{
"from": "gpt",
"value": "a horizontal window opening at the bottom ... | |
3000011 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
176,
416
],
[
364,
416
]
]
},
{
"class": "outside wall",
"points": [
[
488,
124
],
[
488,
... | [
{
"from": "human",
"value": "<record>\nDescribe E32."
},
{
"from": "gpt",
"value": "a horizontal internal door at the top of the architectural plan"
},
{
"from": "human",
"value": "Describe E0."
},
{
"from": "gpt",
"value": "a horizontal outside wall segment at the bottom... | |
3000012 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
208,
380
],
[
332,
380
]
]
},
{
"class": "outside wall",
"points": [
[
332,
288
],
[
332,
... | [
{
"from": "human",
"value": "<record>\nWhat does E39 represent?"
},
{
"from": "gpt",
"value": "a vertical door at the top left of the apartment layout"
},
{
"from": "human",
"value": "Describe E31."
},
{
"from": "gpt",
"value": "a horizontal dividing wall segment at the b... | |
3000013 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
292,
488
],
[
344,
488
]
]
},
{
"class": "outside wall",
"points": [
[
196,
364
],
[
196,
... | [
{
"from": "human",
"value": "What does E38 represent?\n<record>"
},
{
"from": "gpt",
"value": "a vertical interior door at the bottom right of the plan drawing"
},
{
"from": "human",
"value": "What is E46?"
},
{
"from": "gpt",
"value": "a vertical outer window at the top ... | |
3000014 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
148,
96
],
[
228,
96
]
]
},
{
"class": "outside wall",
"points": [
[
148,
96
],
[
148,
... | [
{
"from": "human",
"value": "What is E25?\n<record>"
},
{
"from": "gpt",
"value": "a vertical partition wall segment at the left of the architectural plan"
},
{
"from": "human",
"value": "Describe E24."
},
{
"from": "gpt",
"value": "a vertical inside wall segment at the b... | |
3000015 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
40,
144
],
[
40,
280
]
]
},
{
"class": "outside wall",
"points": [
[
212,
92
],
[
212,
... | [
{
"from": "human",
"value": "<record>\nDescribe E23."
},
{
"from": "gpt",
"value": "a vertical partition wall segment at the left of the architectural plan"
},
{
"from": "human",
"value": "What is E3?"
},
{
"from": "gpt",
"value": "a horizontal exterior wall segment at th... | |
3000016 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
280,
424
],
[
360,
424
]
]
},
{
"class": "outside wall",
"points": [
[
488,
164
],
[
488,
... | [
{
"from": "human",
"value": "What does E7 represent?\n<record>"
},
{
"from": "gpt",
"value": "a horizontal external wall segment at the top right of the plan drawing"
},
{
"from": "human",
"value": "What is E20?"
},
{
"from": "gpt",
"value": "a vertical perimeter wall seg... | |
3000017 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
176,
340
],
[
176,
404
]
]
},
{
"class": "outside wall",
"points": [
[
72,
108
],
[
200,
... | [
{
"from": "human",
"value": "<record>\nWhat is E9?"
},
{
"from": "gpt",
"value": "a horizontal outside wall segment at the bottom right of the layout"
},
{
"from": "human",
"value": "What is E14?"
},
{
"from": "gpt",
"value": "a vertical dividing wall segment at the top r... | |
3000018 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
88,
88
],
[
180,
88
]
]
},
{
"class": "outside wall",
"points": [
[
428,
252
],
[
428,
... | [
{
"from": "human",
"value": "What does E22 represent?\n<record>"
},
{
"from": "gpt",
"value": "a vertical outer window at the left of the residential floor plan"
},
{
"from": "human",
"value": "What does E24 represent?"
},
{
"from": "gpt",
"value": "a horizontal window op... | |
3000019 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
292,
120
],
[
368,
120
]
]
},
{
"class": "outside wall",
"points": [
[
144,
396
],
[
336,
... | [
{
"from": "human",
"value": "What does E6 represent?\n<record>"
},
{
"from": "gpt",
"value": "a vertical external wall segment at the right of the apartment layout"
},
{
"from": "human",
"value": "Describe E23."
},
{
"from": "gpt",
"value": "a horizontal interior wall seg... | |
3000020 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
24,
200
],
[
24,
336
]
]
},
{
"class": "outside wall",
"points": [
[
24,
336
],
[
120,
... | [
{
"from": "human",
"value": "Describe E19.\n<record>"
},
{
"from": "gpt",
"value": "a vertical partition wall segment at the left of the plan drawing"
},
{
"from": "human",
"value": "What does E27 represent?"
},
{
"from": "gpt",
"value": "a vertical doorway at the bottom ... | |
3000021 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
184,
24
],
[
324,
24
]
]
},
{
"class": "outside wall",
"points": [
[
324,
24
],
[
324,
... | [
{
"from": "human",
"value": "Describe E2.\n<record>"
},
{
"from": "gpt",
"value": "a vertical outside wall segment at the top left of the floor plan"
},
{
"from": "human",
"value": "Describe E38."
},
{
"from": "gpt",
"value": "a vertical door in the floorplan"
},
{
... | |
3000022 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
268,
24
],
[
360,
24
]
]
},
{
"class": "outside wall",
"points": [
[
196,
388
],
[
196,
... | [
{
"from": "human",
"value": "Describe E41.\n<record>"
},
{
"from": "gpt",
"value": "a vertical window opening at the top left of the plan drawing"
},
{
"from": "human",
"value": "Describe E0."
},
{
"from": "gpt",
"value": "a horizontal external wall segment at the top of ... | |
3000023 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
488,
244
],
[
488,
284
]
]
},
{
"class": "outside wall",
"points": [
[
24,
224
],
[
24,
... | [
{
"from": "human",
"value": "What is E34?\n<record>"
},
{
"from": "gpt",
"value": "a horizontal interior wall segment at the left of the floorplan"
},
{
"from": "human",
"value": "What does E7 represent?"
},
{
"from": "gpt",
"value": "a horizontal external wall segment at... | |
3000024 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
488,
228
],
[
488,
316
]
]
},
{
"class": "outside wall",
"points": [
[
24,
248
],
[
24,
... | [
{
"from": "human",
"value": "What does E14 represent?\n<record>"
},
{
"from": "gpt",
"value": "a vertical perimeter wall segment at the top right of the floor plan"
},
{
"from": "human",
"value": "What is E56?"
},
{
"from": "gpt",
"value": "a vertical window opening at th... | |
3000025 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
24,
224
],
[
24,
292
]
]
},
{
"class": "outside wall",
"points": [
[
488,
204
],
[
488,
... | [
{
"from": "human",
"value": "What does E43 represent?\n<record>"
},
{
"from": "gpt",
"value": "a horizontal window opening at the top right of the architectural plan"
},
{
"from": "human",
"value": "What does E12 represent?"
},
{
"from": "gpt",
"value": "a vertical perime... | |
3000026 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
160,
148
],
[
356,
148
]
]
},
{
"class": "outside wall",
"points": [
[
160,
148
],
[
160,
... | [
{
"from": "human",
"value": "What does E5 represent?\n<record>"
},
{
"from": "gpt",
"value": "a vertical perimeter wall segment at the right of the plan drawing"
},
{
"from": "human",
"value": "What is E12?"
},
{
"from": "gpt",
"value": "a vertical window opening at the r... | |
3000027 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
80,
216
],
[
80,
340
]
]
},
{
"class": "outside wall",
"points": [
[
104,
404
],
[
212,
... | [
{
"from": "human",
"value": "What is E3?\n<record>"
},
{
"from": "gpt",
"value": "a horizontal external wall segment at the top of the residential floor plan"
},
{
"from": "human",
"value": "What is E30?"
},
{
"from": "gpt",
"value": "a horizontal internal door at the bot... | |
3000028 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
216,
436
],
[
360,
436
]
]
},
{
"class": "outside wall",
"points": [
[
360,
356
],
[
360,
... | [
{
"from": "human",
"value": "<record>\nWhat is E4?"
},
{
"from": "gpt",
"value": "a horizontal exterior wall segment at the bottom right of the floorplan"
},
{
"from": "human",
"value": "What does E15 represent?"
},
{
"from": "gpt",
"value": "a horizontal outside wall seg... | |
3000029 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
60,
424
],
[
168,
424
]
]
},
{
"class": "outside wall",
"points": [
[
212,
88
],
[
212,
... | [
{
"from": "human",
"value": "<record>\nWhat is E26?"
},
{
"from": "gpt",
"value": "a horizontal interior wall segment at the bottom left of the layout"
},
{
"from": "human",
"value": "What does E13 represent?"
},
{
"from": "gpt",
"value": "a vertical exterior wall segment... | |
3000030 | {
"nodes": [
{
"class": "outside wall",
"points": [
[
24,
156
],
[
24,
256
]
]
},
{
"class": "outside wall",
"points": [
[
316,
408
],
[
384,
... | [
{
"from": "human",
"value": "Describe E13.\n<record>"
},
{
"from": "gpt",
"value": "a horizontal perimeter wall segment at the left of the apartment layout"
},
{
"from": "human",
"value": "What is E14?"
},
{
"from": "gpt",
"value": "a vertical perimeter wall segment at th... |
Synthetic Floor Plans Node Captioning
Generated floor plans with multi-turn conversations about single nodes of their records: what a labelled
wall segment, door or window is and where it lies. The set is meant for aligning the node embeddings of a
record decoder with a language model, and uses LLaVA's conversation format with a <record> token in
place of <image>.
The plans are fresh ones from the generator of synthetic-floorplans-for-transcription. Two companions use the same plans: synthetic-floorplans-relationship-captioning asks about the relationships between nodes, and synthetic-floorplans-captioning captions each plan as a whole.
Intended use
This set is meant to be built from predicted records, the output of a model transcribing a drawing,
and not from the true synthetic records. A decoder writes its nodes and their embeddings in the same
order, so E0 in a question is the decoder's first node and its first embedding.
The dataset itself does not depend on where a record came from. A row's image, record and conversation are all built from one record, the image drawn from it, so they agree with each other and work the same whether that record is predicted or true.
Usage
from datasets import load_dataset
plans = load_dataset("jotamunz/synthetic-floorplans-node-captioning", split="train")
plans[3]["record"] # the nodes the questions name, and their relationships
plans[3]["conversations"] # ten questions and their answers
Data format
| field | type | description |
|---|---|---|
id |
string | The plan's seed, padded to 7 digits. |
image |
Image | A 512 × 512 grayscale PNG, black on white, drawn from the record alone. |
record |
struct | The plan's whole record, its nodes and relationships, described below. |
conversations |
list of {from, value} |
Ten questions, each followed by its answer. |
{"id": "4000000",
"image": "<512 × 512 PNG>",
"record": {"nodes": ["…"], "relationships": ["…"]},
"conversations": [
{"from": "human", "value": "Describe E16.\n<record>"},
{"from": "gpt", "value": "a vertical external wall segment at the left of the apartment layout"},
{"from": "human", "value": "What does E41 represent?"},
{"from": "gpt", "value": "a horizontal window opening at the bottom left of the floorplan"},
{"from": "human", "value": "What is E7?"},
{"from": "gpt", "value": "a horizontal external wall segment at the top right of the apartment layout"}]}
E{i} is node i of the row's record. The labels are not stored, because the record's order defines
them: a decoder that writes nodes and their embeddings in that order can match E{i} directly to its
text and its embedding. <record> is a placeholder for the training code to fill: the rows hold the
record itself but no embeddings.
The record
Every row holds the whole record it was built from, the same as its companions do, and its drawing and answers follow from that record alone. The questions here are only about its nodes.
{"nodes": [{"class": "outside wall", "points": [[124.0, 90.0], [220.0, 90.0]]}, "…"],
"relationships": [{"type": "joined", "nodes": [0, 1]}, "…"]}
- A node has a class (
outside wall,inside wall,door,outside doororwindow) and the two ends of its segment, in pixels of the image, x from the left and y from the top. - A relationship has a type and the two nodes it links, as positions in
nodes.joinedlinks two wall segments that share an end, andinlinks an opening to the wall segment it stands in, opening first.
The format is the one of synthetic-floorplans-for-transcription, whose card describes it in full.
Conversations
Each conversation asks about 10 nodes, picked at random from the plan's nodes; a plan with fewer, such as a single room, is asked about all of them. No node is asked about twice in a conversation. The picks and all word choices come from a random generator seeded by the plan, so a plan always gets the same conversation.
The questions are "What is E14?", "Describe E14." and "What does E14 represent?". <record> appears
once, in the first question, before or after the text, and later questions leave it out, as LLaVA does
with <image>.
Answers
An answer gives which way the node runs, its class, and the sides of the plan it is clearly on:
a horizontal window at the top left of the floor plan
A side is named only when it is clear. Around the middle of the plan's outline lies a central band, reaching 10% of the plan's size to each side, along each axis. A node is on a side only if all of it is past the band, so a node crossing the middle has no side on that axis. Across true nodes, 47% name both axes, 49% name one, and 4% name neither:
| clear sides | example |
|---|---|
| both | a vertical inside wall segment at the top right of the floorplan |
| one | a horizontal door at the top of the architectural plan |
| none | a horizontal inside wall segment in the apartment layout |
Walls are named as segments. A wall node is one piece of the record, and the record ends a wall wherever another meets it, so one straight wall in the drawing can be several segments. The image captioning set counts walls the way the drawing shows them, as straight runs, so across these sets a "wall" is a straight run and a "wall segment" is one node.
Classes and the plan are each named with synonyms, such as "outside wall segment", "exterior wall segment" and "perimeter wall segment", or "floor plan", "layout" and "plan drawing". An evaluation should map them back to their class.
Splits
| split | plans | seeds | files |
|---|---|---|---|
| train | 200,000 | 3,000,000 – 3,199,999 | data/train-0000k-of-00004.parquet |
| validation | 5,000 | 4,000,000 – 4,004,999 | data/val-00000-of-00001.parquet |
| test | 5,000 | 5,000,000 – 5,004,999 | data/test-00000-of-00001.parquet |
A plan's id is its seed. The seeds are apart from those of
synthetic-floorplans-for-transcription,
so a model trained on that dataset has not seen these plans.
Limitations
- Answers say what the record says, not what the original plan holds. In a set built from predictions, an error of the prediction shows in the image and the answers alike, so they stay consistent with each other but can differ from the original plan. A tilted segment, which only a prediction holds, is drawn tilted and named by the way it spans further.
- The shares quoted on this card were measured on true records. Predicted records can differ.
- A straight wall in the drawing can be several wall segments. In predicted records, where a wall is split depends on the prediction.
- Positions in answers are coarse. Exact coordinates are only in
record. - Every question is about something that exists, so the set has no negative examples.
- The plans are generated, and all their walls are horizontal or vertical.
Regenerating
The set is built with the instruction-tuning branch of
synthetic-floorplans-for-transcription:
the plans from their seeds, a transcribing model's records of them, drawn anew, then the
conversations. A seed always gives the same plan. Questions and
words are in captioning_config/entity_vocabulary.json, and class names in
captioning_config/vocabulary.json.
uv run create_synthetic_records.py --output-dir ./plans --split val --first-seed 4000000 --count 5000
uv run create_synthetic_records.py --output-dir ./plans --split test --first-seed 5000000 --count 5000
for part in 0 1 2 3; do
uv run create_synthetic_records.py --output-dir ./plans --split "train-0$part" --first-seed $((3000000 + part * 50000)) --count 50000
done
for split in val test train-00 train-01 train-02 train-03; do
uv run draw_records.py --dataset-dir ./plans --split "$split"
done
The model transcribes the drawings and writes its records to a folder per part, val/, train-00/ …,
each with a records.jsonl of one plan per line, its seed, nodes and relationships, in the
format of the plans' own. build_predicted.sh lays them out as the plans are and draws them, and the
set is built from them:
./build_predicted.sh ./predictions ./predicted
./build_node_captioning.sh ./predicted ./node-captioning
Built from ./plans instead, the set holds the true records.
License
CC BY 4.0, as synthetic-floorplans-for-transcription.
- Downloads last month
- 68