Code Monkey home page Code Monkey logo

dps's Introduction

DPS: Diffusion Point Cloud Segmentation

The goal of this project is to use diffusion model to perform affordance segmentation.

Generate data

  1. Run generate superpoint
python dps/scripts/gen_superpoint.py
  1. Run preprocess
python preprocess_data.py

Evaluation on RPdiff dataset

  1. Set environment variable RPDIFF_SOURCE_DIR:
export RPDIFF_SOURCE_DIR=$PWD/dps/external/rpdiff
  1. Run meshcat viewer:
meshcat-server

Install

We only tested on CUDA11.8.

  1. Install other dependency
pip install -r requirements.txt
  1. Install torch 2.1.0 first. This is to get adapt with torch3d.
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118
  1. Install pytorch3d's dependency:
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
  1. Install pytorch3d from source
pip install "git+https://github.com/facebookresearch/pytorch3d.git"
  1. Install torch_scatter.
pip install torch_geometric
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.1.0+cu118.html
  1. Install detectron2
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
  1. Build code for superoint; Comment out everything before echo "โญ Installing FRNN"

You need to replace the line 19: extra_compile_args = {"cxx": ["-std=c++14"]} to extra_compile_args = {"cxx": ["-std=c++17"]} in external/superpoint_transformer/src/dependencies/FRNN/setup.py.

cd external/superpoint_transformer
./install.sh

You need to install pytorch3d, superpoint.

  1. Install detectron2.

TODO

  • Fix the normal for shape-completion.
  • Link the system with rpdiff pipeline.
  • Add training for real object.
  • Improving the bbox points.
  • We can augment the pose registration with superpoint-augmentation; randomly dropping or superpoint.
  • We can also apply a range filter.
  • Fix the segmentation fault. (I guess the output pose is wrong or something like that)

dps's People

Contributors

changhaonan avatar

Stargazers

 avatar Zhuo li avatar

Watchers

 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.