Git Product home page Git Product logo

point2sequence's Introduction

Point2Sequence: Learning the Shape Representation of 3D Point Clouds with an Attention-based Sequence to Sequence Network

Created by Xinhai Liu, Zhizhong Han, Yu-Shen Liu, Matthias Zwicker.

prediction example

Citation

If you find our work useful in your research, please consider citing:

    @inproceedings{liu2019point2sequence,
      title={Point2Sequence: Learning the Shape Representation of 3D Point Clouds with an Attention-based Sequence to Sequence Network},
      author={Liu, Xinhai and Han, Zhizhong and Liu, Yu-Shen and Zwicker, Matthias},
      booktitle={Thirty-Third AAAI Conference on Artificial Intelligence},
      year={2019}
    }

Introduction

In Point2Sequence, we build the multi-scale areas in the local region of point sets by a sequential manner. To explore the correlation between different scale areas, a RNN-based sequence model is employed to capture the contextual information inside local regions. In addition, we also introduce an attention mechanism to highlight the importance different scale areas.

In this repository we release code our Point2Sequence classification and segmentation networks as well as a few utility scripts for training, testing and data processing.

Installation

Install TensorFlow. The code is tested under TF1.4 GPU version and Python 2.7 on Ubuntu 16.04. There are also some dependencies for a few Python libraries for data processing like cv2, h5py etc. It's highly recommended that you have access to GPUs. Before running the code, you need to compile customized TF operators as described in PointNet++.

Usage

Shape Classification

To train a Point2Sequence model to classify ModelNet40 shapes (using point clouds with XYZ coordinates):

    python train.py

To see all optional arguments for training:

    python train.py -h

In the training process, we also evaluate the performance the model.

Shape Part Segmentation

To train a model to segment object parts for ShapeNet models:

    cd part_seg
    python train.py

Prepare Your Own Data

Follow the dataset in PointNet++, you can refer to here on how to prepare your own HDF5 files for either classification or segmentation. Or you can refer to modelnet_dataset.py on how to read raw data files and prepare mini-batches from them.

License

Our code is released under MIT License (see LICENSE file for details).

Related Projects

point2sequence's People

Contributors

liuxinhai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

point2sequence's Issues

Error when loading pre-trained models

I am trying to use the pre-trained model you provided https://drive.google.com/drive/folders/1OY1MOhmL56yUoVfXmLp1zZqIneN46dPd?usp=sharing and I leverage the evaluation script from PointNet++ https://github.com/charlesq34/pointnet2/blob/master/evaluate.py. I used the default settings (no normals). However, the following errors occur when loading model checkpoints:

 W tensorflow/core/framework/op_kernel.cc:1192] Not found: Key layer1/seq_attention/encoder/rnn/lstm_cell/bias not found in checkpoint
 W tensorflow/core/framework/op_kernel.cc:1192] Not found: Key layer1/seq_attention/encoder/rnn/lstm_cell/kernel not found in checkpoint

Indeed, the checkpoint has no such variable names, only with:

layer1/encoder/rnn/lstm_cell/bias
layer1/encoder/rnn/lstm_cell/kernel

Could you provide more guidelines for loading the pre-trained models? Thank you!

tensorflow-gpu: 1.4.0
cuda: 8.0

Related issue: #1

how to set the value of K with different points?

Hi,thanks for your great work, For each sampling point, search the nearest K points to build a local region. The question is how to set the value of K with different points for other datasets. Is there any standard for the value of K. looking forward to your reply.

Pretrained model

Thanks for sharing the codes of this brilliant work!
I have tried to run the code following the default settings but got slightly lower accuracy (~92.0%) in classification of ModelNet40 using the hdf5 data without normals, so I was wondering whether you could provide a pretrained model to reproduce the results listed in your paper?
Thanks a lot!

can you help me?

Can you help me?when I try to train your models I meet this problem.
InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'FarthestPointSample' with these attrs. Registered devices: [CPU], Registered kernels:
device='GPU'

 [[Node: layer1/FarthestPointSample = FarthestPointSample[npoint=384, _device="/device:GPU:0"](Placeholder)]]

how to set the value of K with different points?

Hi,thanks for your great work, For each sampling point, search the nearest K points to build a local region. The question is how to set the value of K with different points. Is there any standard for the value of K. looking forward to your reply.

about s3dis and scannet

why do not you try to use your model to implement task of scene segmentation on s3dis of scannet dataset?can your model make it?

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.