LymanSong / FP_GNN

A framework for detecting and classifying indoor elements in a floor plan using Graph Neural Network.
MIT License
20 stars 4 forks source link

FP_GNN

This repository is Pytorch and DeepGraphLibrary implementation of the experiments in the following paper:

Song J, Yu K. Framework for Indoor Elements Classification via Inductive Learning on Floor Plan Graphs. ISPRS International Journal of Geo-Information. 2021; 10(2):97. https://doi.org/10.3390/ijgi10020097

if you make use of the code/experiment in you work, please cite the paper.

Installation

Install PyTorch following the instuctions on the [official website] (https://pytorch.org/). The code has been tested over PyTorch 1.7.0 and DGL 0.5.2 versions.

Then install the other dependencies.

pip install -r requirements.txt

Test run

For training and test:

python train_test.py

For test code:

python test_code.py

Scripts and directories

Note