GithubHelp home page GithubHelp logo

triple-tam / pointnet2.scannet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daveredrum/pointnet2.scannet

0.0 1.0 0.0 12.86 MB

PointNet++ Semantic Segmentation on ScanNet in PyTorch

License: MIT License

Python 80.94% C++ 6.96% Cuda 12.10%

pointnet2.scannet's Introduction

Pointnet2.ScanNet

PointNet++ Semantic Segmentation on ScanNet in PyTorch with CUDA acceleration based on the original PointNet++ repo and the PyTorch implementation with CUDA

Performance

The semantic segmentation results in percentage on the ScanNet train/val split in data/.

AvgFloorWallCabinetBedChairSofaTableDoorWindowBookshelfPictureCounterDeskCurtainRefrigeratorBathtubShowerToiletSinkOthers
50.6290.9663.8735.2156.7562.4368.4647.1536.1234.1225.6223.5841.4642.7332.3844.1264.9363.9074.0458.1346.40

The pretrained models: SSG MSG

Installation

Requirements

  • Linux (tested on Ubuntu 14.04/16.04)
  • Python 3.6+
  • PyTorch 1.0
  • TensorBoardX

Install

Install this library by running the following command:

cd pointnet2
python setup.py install

Configure

Change the path configurations for the ScanNet data in lib/config.py

Usage

preprocess ScanNet scenes

Parse the ScanNet data into *.npy files and save them in preprocessing/scannet_scenes/

python preprocessing/collect_scannet_scenes.py

sanity check

Don't forget to visualize the preprocessed scenes to check the consistency

python preprocessing/visualize_prep_scene.py --scene_id <scene_id>

The visualized <scene_id>.ply is stored in preprocessing/label_point_clouds/

train

Train the PointNet++ semantic segmentation model on ScanNet scenes

python train.py --batch_size 32 --epoch 500 --lr 1e-3 --verbose 10 --weighting

The trained models and logs will be saved in outputs/<time_stamp>/

Note: please refer to train.py for more training settings

eval

Evaluate the trained models and report the segmentation performance in point accuracy, voxel accuracy and calibrated voxel accuracy

python eval.py --batch_size 32 --folder <time_stamp>

vis

Visualize the semantic segmentation results on points in a given scene

python visualize.py --batch_size 32 --folder <time_stamp> --scene_id <scene_id>

The generated <scene_id>.ply is stored in outputs/<time_stamp>/preds. See the class palette here

Acknowledgement

pointnet2.scannet's People

Contributors

daveredrum avatar triple-tam avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.