FloorPlanCAD YOLO11n
Architectural Floor Plan Element Recognition
2 min readupdated
A collection of fine-tunes based on the compact YOLO11n architecture (Ultralytics), trained for automated analysis of 2D blueprints and floor plans from the FloorPlanCAD dataset. The release includes two core models: an object detector for spotting 30 classes of elements (doors, windows, furniture, plumbing fixtures, stairs) and a segmentation model for isolating walls, curtain walls, and railings. Unlike general-purpose detectors, these weights are tailored specifically for black-and-white line drawings and can serve as the first step in converting 2D floor plans into 3D scenes.
Key features
- Two specialized models:
runs/d11n_s1/best.pthandles the detection of 30 types of interior and structural elements, whileruns/w11n_s1/best.ptperforms pixel-level segmentation of walls and railings. - Built for line drawings: The models take black-and-white images (black lines on a white background across 3 identical channels) scaled at roughly 10 mm per pixel, and support direct conversion from raw RGBA PNGs in FloorPlanCAD.
- Fair benchmark against YOLOv8n: Tested across three seeds (seed 0, 1, 2) at 1024 resolution, showing that YOLO11n and the baseline YOLOv8n deliver statistically identical detection accuracy.
What you can do
- Automate floor plan digitization: Combine the detector and segmentation model in 2D-to-3D pipelines to extract wall geometry and place 3D furniture and door assets across a floor plan.
- Integrate into CAD tools or web apps: Run inference via the
fpyolo.predictmodule on CPU or GPU for fast element counting and blueprint verification.
Example
python -m fpyolo.predict --d-weights runs/d11n_s1/best.pt --w-weights runs/w11n_s1/best.pt --w-conf 0.25 \
--schema configs/classes_v0.yaml --input plan.png --out ./out --device 0Read more
DetailsDetection (YOLO11n and YOLOv8n): core-class mAP50-95 reaches 0.725 ± 0.003 (the Δ +0.0004 difference is statistically insignificant).
Wall segmentation (YOLO11n-seg): wall pixel IoU hits 0.703 / 0.701 / 0.691 across three seeds.
Training setup: imgsz 1024 resolution, SGD optimizer (lr0 0.01), batch 32, up to 300 epochs (patience 50).
Limitations: Requires compliance with the FloorPlanCAD dataset terms of use, and inputs must strictly consist of black lines on a white background.










Comments