GithubHelp home page GithubHelp logo

pedro-sidra-isi / long-tail-point-cloud-segmentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pha123661/long-tail-point-cloud-segmentation

0.0 0.0 0.0 6 MB

An attention-based solution on a long-tailed 3D point cloud dataset

Shell 2.96% C++ 7.94% Python 77.77% Cuda 11.33%

long-tail-point-cloud-segmentation's Introduction

Long Tail Point Cloud Segmentation

In this project, we adapt the well-known attention mechanism to 3D point cloud segmentation and demonstrate its effectiveness in combination with U-Net-inspired architecture and various long-tail recognition (LTR) techniques on the SCANNET200 dataset.

๐ŸŽ‰We were voted as the best by 123 classmates and 29 teams through inter-team evaluation!๐ŸŽ‰

Our poster: poster

Environment Setup

Our GPU is a single 4090 with 24GB VRAM

Option 1: Install using anaconda

cd point-transformer
bash conda_env_setup.sh pt

Option 2: Manual installation

  1. Install torch 1.9.0 corresponds to your cuda version (11.1 in our case)

  2. pip install h5py pyyaml sharedarray tensorboardx plyfile

  3.  cd point-transformer/lib/pointops
    
     python3 setup.py install

    to install custom kernel functions

Dataset Setup for Training

Only place the dataset if you plan to train the model.
Place the train and test set in point-transformer/dataset/scannet200
The directory should look like:

point-transfomer/
โ”œโ”€ dataset/
โ”‚  โ”œโ”€ scannet200/
โ”‚  โ”‚  โ”œโ”€ train/
โ”‚  โ”‚  โ”‚  โ”œโ”€ scene0000_00.ply
โ”‚  โ”‚  โ”‚  โ”œโ”€ ...
โ”‚  โ”‚  โ”œโ”€ test/
โ”‚  โ”‚  โ”‚  โ”œโ”€ scene0500_00.ply
โ”‚  โ”‚  โ”‚  โ”œโ”€ ...
โ”‚  โ”‚  โ”œโ”€ train_split.txt
โ”‚  โ”‚  โ”œโ”€ val_split.txt
โ”‚  โ”‚  โ”œโ”€ test_split.txt

Train

cd point-transformer
bash train.sh

Inference

Option 1: Ensemble with five models (24.2 mIoU)

Since we use five models as ensemble voting classifier, we provide five different weights to download.
Follow the procedure to repreduce the results: \

  1. cd point-transformer \
  2. For i in [0, 1, 2, 3, 4]:
    a. bash download{i}.sh
    "${1}" is the path to test set folder (e.g., ./dataset/test)
    "${2}" is the path to test.txt (e.g., ./dataset/test.txt)
    "${3}" is the path to output folder (e.g., ./submission)
    b. bash inference.sh $1 $2 $3
    c. Move the output folder (e.g., ./submission) into ../Ensemble/all_submissions
  3. cd ../Ensemble
  4. Run python3 Ensemble.py
  5. The result is in Ensemble/ensemble_results

Option 2: Use the best single model (23.4 mIoU)

"${1}" is the path to test set folder (e.g., ./dataset/test)
"${2}" is the path to test.txt (e.g., ./dataset/test.txt)
"${3}" is the path to output folder (e.g., ./submission)

Run:

cd point-transformer
bash download0.sh
bash inference.sh $1 $2 $3

long-tail-point-cloud-segmentation's People

Contributors

pha123661 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.