Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Subspace Matching for Residential Floor Plans using Deep Learning: Enhancing Interior Design Efficiency

DOI

This repository contains code for an automated method to extract the data structure of subspaces of residential floor plans and compare it with case data.

Installation

The recognition of residential floor plans is based on PaddleSeg,PaddleDetection,PaddleOCR. We have modified PaddleSeg and PaddleDetection. Please get the corresponding code from the link below.

PaddleSegOpen

PaddleDetectionOpen

(1) Install all dependencies, first the paddlepaddle 2.5 version

python3 -m pip install paddlepaddle-gpu==2.5.2.post120
-f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html

(2) Install three dependent frameworks, PaddleSeg, PaddleDetection, PaddleOCR (PaddleSegOpen and PaddleDetectionOpen have been downloaded)

cd PaddleSegOpen
pip install -r requirements.txt
pip install -v -e .

cd PaddleDetectionOpen
pip install -r requirements.txt
pip install -v -e .

pip install "paddleocr==2.7.0" -i https://pypi.tuna.tsinghua.edu.cn/simple

Example Usages

The DataSet can be obtained from the following link.

Train You can train your own semantic segmentation model for floor plans.

cd PaddleSegOpen
python tools/train.py --config "FloorPlanOpendir/configs/floorplan16.yml" --do_eval --use_vdl --save_interval 200 --save_dir "Your_output_dir"

# Please note the modified path "FloorPlanOpendir" and the dataset path in the "floorplan16.yml" file

Infer In addition to the semantic segmentation model, you can also obtain the key area detection model of the residential floor plan and the semantic segmentation model of the case data. Please place the semantic segmentation model of floor plan, the semantic segmentation model of case diagram, and the key area detection model of floor plan in the dir "model/floorplanseg", "model/kuangseg" and "model/detection" respectively. The semantic segmentation model of the floor plan needs to be renamed to "model16.pdparams".

The following subspace comparison results can be obtained through the following code:

python utils/Subspace_Match.py

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages