Coder Social home page Coder Social logo

ammieqi / pcan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xlechter/pcan

0.0 1.0 0.0 218 KB

Code for PCAN: 3D Attention Map Learning Using Contextual Information for Point Cloud Based Retrieval

Python 64.22% C++ 20.03% Shell 1.22% Cuda 14.16% MATLAB 0.37%

pcan's Introduction

PCAN: 3D Attention Map Learning Using Contextual Information for Point Cloud Based Retrieval

PCAN: 3D Attention Map Learning Using Contextual Information for Point Cloud Based Retrieval CVPR 2019

Wenxiao Zhang and Chunxia Xiao

Wuhan University

Introduction

PCAN is an attention module for point cloud based retrieval, which can predict the significance of each local point feature based on point context. This work is based on PointNetVLAD and Pointnet++.

pic-network

Pre-requisites

  • Python3
  • CUDA
  • Tensorflow
  • Scipy
  • Pandas
  • Sklearn

For attention map visualization, matlab is also needed.

Compile Customized TF Operators

The TF operators are included under tf_ops, you need to compile them (check tf_xxx_compile.sh under each ops subfolder) first. Refer to Pointnet++ for more details.

Generate pickle files

Please refer to PointNetVLAD.

Training

To train our network, run the following command:

python train.py

To evaluate the model, run the following command:

python evaluate.py

Pre-trained Models

The pre-trained models for both the baseline and refined networks can be downloaded here.

Attention Map Visualization

For visualization, you can run the visualization/show_attention_map.m using matlab to visulize the attention map. We provide a weight file of a point cloud in oxford_weights folder.

To produce the weights of all the point cloud, you can run the following command:

python evaluate_save_weights.py

The the weights will be saved in .bin files in datasetname_weights folder.

You can also use the python lib mpl_toolkits.mplot3d for visualization.

If you want to produce the same visualization results in the paper, please use this model which is an earlier trained refined model when we submited the paper.

Contact

Feel free to contact me if you have any questions. [email protected]

pcan's People

Contributors

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