Skip to content

weiqianwang123/RoomSegmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Room Segmentation

Environment

  • The code has been tested on Linux with python 3.8, torch 1.9.0, and cuda 11.1.
    • Install pytorch and other required packages:
    # adjust the cuda version accordingly
    pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
    pip install -r requirements.txt
    cd models/ops
    sh make.sh
    
    # unit test for deformable-attention modules (should see all checking is True)
    # python test.py
    
    cd ../../diff_ras
    python setup.py build develop

Data

Please download the data from this link.And put it in RoomSegmentation/Data/

Checkpoints

Please download and extract the checkpoints of our model from this link.And put it in RoomSegmentation/Weights/

Evaluation

The predicted images will be saved in RoomSegmentation/Results/ and the AP50 and mIOU will be shown in terminal.

sudo chmod +x scripts/eval_mp3d.sh
sudo chmod +x scripts/eval_mp3d_enhanced.sh
./scripts/eval_mp3d.sh
./scripts/eval_mp3d_enhanced.sh

Single scene demo

The input is a PLY file (with the Y-axis facing up by default, and preferably with a mesh). The output consists of the segmented room point clouds and their corresponding information. The input and output paths can be modified in the shell (.sh) file. Currently, the default is set to the point cloud of the first floor of GGBL in University of Michigan.

sudo chmod +x scripts/demo.sh
./scripts/demo.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors