Datasets:
image imagewidth (px) 414 14.3k | instruction stringclasses 1
value | json_string stringlengths 115 9.97k |
|---|---|---|
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[318,163],"end":[535,163],"thickness":13,"curvature":0,"openings":[{"type":"window","center":50,"width":58},{"type":"door","center":126,"width":27},{"type":"window","center":171,"width":59}]},{"id":"wall_2","start":[532,157],"end":[532,469],"thickness":6,"curvature":0,"openings":[]},{"i... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[149,158],"end":[329,158],"thickness":7,"curvature":0,"openings":[{"type":"window","center":35,"width":49},{"type":"window","center":136,"width":32}]},{"id":"wall_2","start":[326,155],"end":[326,466],"thickness":5,"curvature":0,"openings":[]},{"id":"wall_3","start":[149,462],"end":[329,... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[141,467],"end":[660,467],"thickness":11,"curvature":0,"openings":[{"type":"window","center":84,"width":81}]},{"id":"wall_2","start":[654,462],"end":[654,774],"thickness":11,"curvature":0,"openings":[{"type":"window","center":228,"width":82}]},{"id":"wall_3","start":[303,769],"end":[660... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[74,162],"end":[74,533],"thickness":9,"curvature":0,"openings":[{"type":"window","center":186,"width":49}]},{"id":"wall_2","start":[433,400],"end":[433,533],"thickness":9,"curvature":0,"openings":[{"type":"window","center":45,"width":50}]},{"id":"wall_3","start":[430,363],"end":[430,400... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[40,69],"end":[387,69],"thickness":5,"curvature":0,"openings":[]},{"id":"wall_2","start":[382,66],"end":[382,249],"thickness":9,"curvature":0,"openings":[{"type":"door","center":40,"width":31},{"type":"window","center":112,"width":87}]},{"id":"wall_3","start":[199,242],"end":[387,242],"... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[26,467],"end":[26,552],"thickness":8,"curvature":0,"openings":[]},{"id":"wall_2","start":[22,471],"end":[93,471],"thickness":8,"curvature":0,"openings":[{"type":"window","center":25,"width":18}]},{"id":"wall_3","start":[89,121],"end":[89,475],"thickness":8,"curvature":0,"openings":[{"t... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[272,167],"end":[623,167],"thickness":14,"curvature":0,"openings":[{"type":"window","center":236,"width":88}]},{"id":"wall_2","start":[616,160],"end":[616,580],"thickness":15,"curvature":0,"openings":[{"type":"window","center":235,"width":71}]},{"id":"wall_3","start":[271,573],"end":[62... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[176,271],"end":[176,872],"thickness":13,"curvature":0,"openings":[]},{"id":"wall_2","start":[169,862],"end":[608,862],"thickness":20,"curvature":0,"openings":[{"type":"door","center":235,"width":55},{"type":"window","center":115,"width":102}]},{"id":"wall_3","start":[602,271],"end":[60... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[90,547],"end":[267,547],"thickness":11,"curvature":0,"openings":[{"type":"door","center":60,"width":109},{"type":"door","center":140,"width":37}]},{"id":"wall_2","start":[84,541],"end":[84,557],"thickness":13,"curvature":0,"openings":[]},{"id":"wall_3","start":[84,175],"end":[84,557],"... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[63,115],"end":[63,949],"thickness":23,"curvature":0,"openings":[]},{"id":"wall_2","start":[520,51],"end":[520,890],"thickness":23,"curvature":0,"openings":[]},{"id":"wall_3","start":[52,135],"end":[202,135],"thickness":77,"curvature":0,"openings":[]},{"id":"wall_4","start":[398,90],"en... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[45,96],"end":[249,96],"thickness":16,"curvature":0,"openings":[]},{"id":"wall_2","start":[242,88],"end":[242,167],"thickness":15,"curvature":0,"openings":[{"type":"door","center":35,"width":37}]},{"id":"wall_3","start":[346,151],"end":[477,151],"thickness":15,"curvature":0,"openings":[... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[45,193],"end":[341,193],"thickness":35,"curvature":0,"openings":[{"type":"window","center":172,"width":190}]},{"id":"wall_2","start":[324,193],"end":[425,193],"thickness":14,"curvature":0,"openings":[{"type":"door","center":58,"width":74}]},{"id":"wall_3","start":[425,193],"end":[732,1... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[14,162],"end":[490,162],"thickness":14,"curvature":0,"openings":[{"type":"door","center":269,"width":60},{"type":"window","center":164,"width":130},{"type":"window","center":362,"width":115}]},{"id":"wall_2","start":[484,155],"end":[484,885],"thickness":12,"curvature":0,"openings":[]},... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[101,620],"end":[727,620],"thickness":15,"curvature":0,"openings":[{"type":"door","center":315,"width":39},{"type":"window","center":150,"width":27},{"type":"window","center":398,"width":82},{"type":"window","center":551,"width":38}]},{"id":"wall_2","start":[719,612],"end":[719,984],"th... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[952,100],"end":[952,743],"thickness":21,"curvature":0,"openings":[{"type":"window","center":177,"width":136}]},{"id":"wall_2","start":[107,733],"end":[963,733],"thickness":21,"curvature":0,"openings":[{"type":"window","center":198,"width":133},{"type":"window","center":686,"width":135}... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[193,410],"end":[193,664],"thickness":20,"curvature":0,"openings":[]},{"id":"wall_2","start":[61,418],"end":[203,418],"thickness":15,"curvature":0,"openings":[]},{"id":"wall_3","start":[68,157],"end":[68,425],"thickness":15,"curvature":0,"openings":[{"type":"door","center":193,"width":4... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[96,349],"end":[96,524],"thickness":9,"curvature":0,"openings":[{"type":"window","center":138,"width":41}]},{"id":"wall_2","start":[91,528],"end":[415,528],"thickness":10,"curvature":0,"openings":[{"type":"window","center":253,"width":61},{"type":"door","center":54,"width":45},{"type":"... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[57,294],"end":[536,294],"thickness":14,"curvature":0,"openings":[{"type":"door","center":306,"width":40},{"type":"window","center":137,"width":90},{"type":"window","center":373,"width":77}]},{"id":"wall_2","start":[529,246],"end":[529,301],"thickness":14,"curvature":0,"openings":[]},{"... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[47,205],"end":[47,838],"thickness":9,"curvature":0,"openings":[]},{"id":"wall_2","start":[43,827],"end":[296,827],"thickness":22,"curvature":0,"openings":[{"type":"door","center":132,"width":58}]},{"id":"wall_3","start":[292,205],"end":[292,838],"thickness":9,"curvature":0,"openings":[... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[115,59],"end":[115,523],"thickness":14,"curvature":0,"openings":[]},{"id":"wall_2","start":[108,516],"end":[342,516],"thickness":14,"curvature":0,"openings":[{"type":"window","center":187,"width":67},{"type":"window","center":119,"width":69},{"type":"window","center":50,"width":69}]},{... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[107,31],"end":[419,31],"thickness":9,"curvature":0,"openings":[{"type":"window","center":56,"width":23},{"type":"window","center":225,"width":40},{"type":"window","center":266,"width":38}]},{"id":"wall_2","start":[414,26],"end":[414,128],"thickness":9,"curvature":0,"openings":[{"type":... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[21,204],"end":[572,204],"thickness":20,"curvature":0,"openings":[{"type":"door","center":389,"width":52},{"type":"window","center":134,"width":93},{"type":"window","center":298,"width":90},{"type":"window","center":470,"width":92}]},{"id":"wall_2","start":[566,194],"end":[566,876],"thi... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[44,613],"end":[294,613],"thickness":12,"curvature":0,"openings":[{"type":"window","center":64,"width":57},{"type":"window","center":187,"width":69},{"type":"door","center":129,"width":30}]},{"id":"wall_2","start":[290,607],"end":[290,954],"thickness":9,"curvature":0,"openings":[]},{"id... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[36,189],"end":[634,189],"thickness":22,"curvature":0,"openings":[{"type":"window","center":193,"width":126},{"type":"door","center":304,"width":52},{"type":"window","center":459,"width":112}]},{"id":"wall_2","start":[625,178],"end":[625,842],"thickness":17,"curvature":0,"openings":[]},... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[56,54],"end":[56,116],"thickness":28,"curvature":0,"openings":[]},{"id":"wall_2","start":[63,116],"end":[63,873],"thickness":14,"curvature":0,"openings":[]},{"id":"wall_3","start":[68,853],"end":[68,917],"thickness":24,"curvature":0,"openings":[]},{"id":"wall_4","start":[56,863],"end":... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[76,814],"end":[760,814],"thickness":11,"curvature":0,"openings":[{"type":"window","center":103,"width":133},{"type":"window","center":304,"width":30},{"type":"window","center":425,"width":30},{"type":"window","center":553,"width":113},{"type":"door","center":232,"width":50},{"type":"wi... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[68,354],"end":[402,354],"thickness":9,"curvature":0,"openings":[{"type":"door","center":257,"width":50},{"type":"window","center":137,"width":168}]},{"id":"wall_2","start":[394,279],"end":[394,358],"thickness":16,"curvature":0,"openings":[]},{"id":"wall_3","start":[387,287],"end":[758,... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[163,74],"end":[965,74],"thickness":16,"curvature":0,"openings":[{"type":"window","center":656,"width":138},{"type":"window","center":488,"width":51},{"type":"window","center":369,"width":41}]},{"id":"wall_2","start":[959,66],"end":[959,370],"thickness":14,"curvature":0,"openings":[]},{... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[249,198],"end":[569,198],"thickness":22,"curvature":0,"openings":[{"type":"window","center":157,"width":162}]},{"id":"wall_2","start":[569,197],"end":[926,197],"thickness":18,"curvature":0,"openings":[{"type":"door","center":49,"width":80},{"type":"window","center":210,"width":233}]},{... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[39,177],"end":[729,177],"thickness":15,"curvature":0,"openings":[{"type":"window","center":81,"width":77},{"type":"window","center":204,"width":77},{"type":"window","center":417,"width":78},{"type":"window","center":569,"width":61},{"type":"door","center":631,"width":36}]},{"id":"wall_... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[151,84],"end":[151,425],"thickness":18,"curvature":0,"openings":[{"type":"window","center":81,"width":68},{"type":"window","center":182,"width":45},{"type":"window","center":283,"width":70}]},{"id":"wall_2","start":[142,420],"end":[394,420],"thickness":9,"curvature":0,"openings":[]},{"... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[111,188],"end":[898,188],"thickness":20,"curvature":0,"openings":[{"type":"door","center":733,"width":51},{"type":"window","center":665,"width":69},{"type":"window","center":591,"width":68},{"type":"window","center":431,"width":67},{"type":"window","center":357,"width":67},{"type":"doo... | |
You are a floor plan vectorization expert. Extract wall, door, window geometry from floor plan images into structured JSON.
Output ONLY valid JSON with this schema:
{"walls":[{"id":"wall_N","start":[x,y],"end":[x,y],"thickness":T,"curvature":0,"openings":[{"type":"door"|"window","center":D,"width":W}]}],"rooms":[{"lab... | {"walls":[{"id":"wall_1","start":[41,140],"end":[41,622],"thickness":37,"curvature":0,"openings":[]},{"id":"wall_2","start":[23,163],"end":[951,163],"thickness":47,"curvature":0,"openings":[{"type":"window","center":734,"width":139},{"type":"window","center":425,"width":133}]},{"id":"wall_3","start":[939,140],"end":[93... |
End of preview. Expand in Data Studio
FloorplanVLM SFT Dataset (Flat)
A flattened HuggingFace dataset optimized for Unsloth Studio and other tools requiring flat column formats for VLM fine-tuning.
This is the flat version of BinniesHK-AI/floorplan-vlm-sft-dataset, which uses a chat-based messages format.
Dataset Structure
| Column | Type | Description |
|---|---|---|
image |
PIL.Image | Floor plan image (F1_scaled.png from CubiCasa5K) |
instruction |
str |
Combined system + user prompt (single text field for training) |
json_string |
str |
Raw JSON annotation of the floor plan |
Example
from datasets import load_dataset
ds = load_dataset("BinniesHK-AI/floorplan-vlm-sft-dataset-flat", split="train")
sample = ds[0]
print(sample["instruction"][:200])
# "You are a floor plan analysis assistant. Convert the floor plan image to structured JSON.\n\nAnalyze the provided floor plan image and output a JSON object..."
print(sample["json_string"][:200])
# '{"rooms": [{"type": "living_room", "area": 25.5, "points": [[100, 200], ...]}, ...]}'
Usage with Unsloth Studio
- Go to Unsloth Studio
- Select Upload Dataset → HuggingFace
- Enter:
BinniesHK-AI/floorplan-vlm-sft-dataset-flat - Map columns:
- Image:
image - Instruction:
instruction - Output:
json_string
- Image:
Usage with TRL SFTTrainer
from datasets import load_dataset
from trl import SFTTrainer, SFTConfig
ds = load_dataset("BinniesHK-AI/floorplan-vlm-sft-dataset-flat", split="train")
def formatting_func(examples):
"""Wrap instruction + json_string into chat messages."""
texts = []
for inst, js in zip(examples["instruction"], examples["json_string"]):
texts.append([
{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": inst}]},
{"role": "assistant", "content": [{"type": "text", "text": js}]},
])
return texts
trainer = SFTTrainer(
model=model,
train_dataset=ds,
args=SFTConfig(output_dir="./output", max_seq_length=4096),
formatting_func=formatting_func,
)
trainer.train()
Instruction Format
The instruction column contains the combined system and user prompt:
You are a floor plan analysis assistant. Convert the floor plan image to structured JSON.
Analyze the provided floor plan image and output a JSON object with the following structure:
{
"rooms": [{"type": str, "area": float, "points": [[x, y], ...]}],
"walls": [{"points": [[x1, y1], [x2, y2]], "width": float}],
"doors": [{"position": [x, y], "width": float, "rotation": float}],
"windows": [{"position": [x, y], "width": float, "rotation": float}]
}
Focus on accurately identifying room types, boundaries, and structural elements.
JSON Annotation Format
The json_string column contains the raw JSON output:
{
"rooms": [
{
"type": "living_room",
"area": 25.5,
"points": [[100, 200], [300, 200], [300, 400], [100, 400]]
},
{
"type": "bedroom",
"area": 15.2,
"points": [[300, 200], [500, 200], [500, 400], [300, 400]]
}
],
"walls": [
{"points": [[100, 200], [500, 200]], "width": 0.2}
],
"doors": [
{"position": [200, 300], "width": 0.9, "rotation": 0}
],
"windows": [
{"position": [400, 200], "width": 1.2, "rotation": 0}
]
}
Room Types
The dataset includes 80+ floor plan object categories from CubiCasa5K, including:
- Rooms: living_room, bedroom, kitchen, bathroom, hallway, etc.
- Structures: wall, door, window, stairs, elevator
- Fixtures: sink, toilet, bathtub, shower, stove, oven
- Furniture: bed, sofa, table, chair, desk, cabinet
Data Splits
| Split | Samples | Description |
|---|---|---|
| train | 4,142 | Training set |
| validation | 397 | Validation set |
| test | 394 | Test set |
Note: 67 samples were filtered out due to SVG parse failures or oversized JSON annotations (>10KB).
Citation
@inproceedings{Mai2019CubiCasa,
title={CubiCasa5K: A Dataset and an Improved Model for Floorplan Recognition},
author={Mai, Liu and K{\"o}pf, Bernhard and Ballas, Nicolas and Ke, Qi},
booktitle={International Conference on Document Analysis and Recognition (ICDAR)},
year={2019}
}
License
Creative Commons Attribution 4.0 International (CC BY 4.0)
- Downloads last month
- 96
Task
: Image-to-text (floor plan → structured JSON)
Source
: CubiCasa5K (5000 real floor plans from Finnish architectural drawings)
Conversion
: SVG polygon annotations → structured JSON with walls, doors, windows, and rooms
Format
: Flat columns (image, instruction, json_string) — ready for Unsloth Studio
Splits
: Train (4142), Validation (397), Test (394)
Number of rows:
4,933
Total file size:
1.99 GB