PCAN
Code for PCAN: 3D Attention Map Learning Using Contextual Information for Point Cloud Based Retrieval
Install / Use
/learn @XLechter/PCANREADME
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++.

Pytorch Version
We implement a pytorch version in another project in models/PCAN.py. You can check it if needed.
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.
[Citation]
If you find our code useful, please cite our paper:
@inproceedings{zhang2019pcan,
title={PCAN: 3D attention map learning using contextual information for point cloud based retrieval},
author={Zhang, Wenxiao and Xiao, Chunxia},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={12436--12445},
year={2019}
}
Contact
Feel free to contact me if you have any questions. wenxxiao.zhang@gmail.com
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
groundhog
399Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
18.8kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
sec-edgar-agentkit
10AI agent toolkit for accessing and analyzing SEC EDGAR filing data. Build intelligent agents with LangChain, MCP-use, Gradio, Dify, and smolagents to analyze financial statements, insider trading, and company filings.
