Downloads · 30 days
530
20% of all-time downloads
Yytsi/floorplan-to-3d-walls
floorplan-to-3d-walls is a image segmentation model from Yytsi. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
A UNet decoder with a ResNet-34 encoder backbone (ImageNet-pretrained), trained on CubiCasa5K to segment architectural floor plans into four classes: floor / wall / door / window.
Downloads · 30 days
530
20% of all-time downloads
All-time downloads
2.6K
Public
Repo size
97.9 MB
Likes
6
Public
Click a slice to open those files.
.safetensors97.9 MB · 100%
From the Hugging Face model README
A UNet decoder with a ResNet-34 encoder backbone (ImageNet-pretrained), trained on CubiCasa5K to segment architectural floor plans into four classes: floor / wall / door / window.
The full project (training code, polygon extractor, FastAPI inference server, 3D Three.js viewer) lives at https://github.com/Yytsi/floorplan-to-3d.
A hosted preview at floorplan-to-3d.pages.dev
shows three pre-rendered example plans extruded into 3D — it's static, no
backend. To run inference on your own SVGs, clone the repo and start the
local FastAPI server (the viewer detects it via /healthz and reveals an
upload button).
best.safetensors — model weights, ~98 MB. Loadable with
safetensors.torch.load_file. The epoch and best_miou are stored in
the safetensors metadata header.config.yaml — training config required by the loader (image size,
letterbox, normalization, encoder name).mkdir -p weights
curl -L -o weights/best.safetensors https://huggingface.co/Yytsi/floorplan-to-3d-walls/resolve/main/best.safetensors
curl -L -o weights/config.yaml https://huggingface.co/Yytsi/floorplan-to-3d-walls/resolve/main/config.yaml
Then follow the README on GitHub for the inference server + viewer.
MIT — see the GitHub repo.