Home

Awesome

Any2Point: Empowering Any-modality Large Models for Efficient 3D Understanding

Official implementation of 'Any2Point: Empowering Any-modality Large Models for Efficient 3D Understanding'.

[2023.5] We release ICCV2023 'ViewRefer3D', a multi-view framework for 3D visual grounding exploring how to grasp the view knowledge from both text and 3D modalities with LLM.

[2023.9] We release AAAI2024 'Point-PEFT', adapting 3D pre-trained Models with 1% parameters to downstream tasks .

[2024.5] The results of Any2Point on ShapeNetPart will be released soon!

[2024.7] Any2Point has been accepted by ECCV 2024!

<p align="center"> <img src="Teaser_any.png"/ width="70%"> <br> </p>

Introduction

Large foundation models have recently emerged as a prominent focus of interest, attaining superior performance in widespread scenarios. Due to the scarcity of 3D data, many efforts have been made to adapt pre-trained transformers from vision to 3D domains. However, such 2D-to-3D approaches are still limited, due to the potential loss of spatial geometries and high computation cost. More importantly, their frameworks are mainly designed for 2D models, lacking a general any-to-3D paradigm. In this paper, we introduce Any2Point, a parameter-efficient method to empower any-modality large models (vision, language, audio) for 3D understanding. Given a frozen transformer from any source modality, we propose a 3D-to-any (1D or 2D) virtual projection strategy that correlates the input 3D points to the original 1D or 2D positions within the source modality. This mechanism enables us to assign each 3D token with a positional encoding paired with the pre-trained model, which avoids 3D geometry loss caused by the true projection and better motivates the transformer for 3D learning with 1D/2D positional priors. Then, within each transformer block, we insert an any-to-3D guided adapter module for parameter-efficient fine-tuning. The adapter incorporates prior spatial knowledge from the source modality to guide the local feature aggregation of 3D tokens, compelling the semantic adaption of any-modality transformers. We conduct extensive experiments to showcase the effectiveness and efficiency of our method.

<div align="center"> <img src="Intro_any.png"/> </div>

Main Results

We report the pre-training modality (Pre-train), the number of learnable parameters (#Param) on the "PB-T50-RS" split of ScanObjectNN (SCAN.) and ModelNet40 (MN.). * indicates utilizing the voting strategy.

MethodPre-train#Param(M)SCAN.(%)MN.(%)
PointNetN/A3.568.089.2
PointNet++N/A1.577.990.7
DGCNNN/A1.878.192.9
PointMLPN/A12.685.494.1
Point-PNN/A0.887.193.8
PointNeXtN/A1.487.794.0
Point-BERT3D22.183.192.7
Point-MAE3D22.185.293.2
Point-M2AE3D15.386.493.4
P2P-HorNet2D1.289.394.0*
ACT3D+2D22.188.293.7
I2P-MAE3D+2D12.990.193.7
ReCon3D+2D+Language43.690.694.1
Any2Point (Audio)Audio0.887.092.7
Any2Point (2D)2D0.887.793.2
Any2Point (Language)Language0.991.994.3

Ckpt Release

Real-world shape classification on the PB-T50-RS split of ScanObjectNN:

MethodLogsAcc.Ckpts
Any2Point-Lang-CLIPLanguage_CLIP_Scan.log91.9%Language_CLIP_Scan.pth
Any2Point-Vision-DINOV2Vision_DINOV2_Scan.log87.7%Vision_DINOV2_Scan.pth
Any2Point-Audio-ImageBindAudio_imagebind_scan.log87.0%Audio_imagebind_scan.pth

Synthetic shape classification on the ModelNet40:

MethodLogsAcc.Ckpts
Any2Point-Lang-CLIPLanguage_CLIP_ModelNet.log94.3%Language_CLIP_ModelNet.pth
Any2Point-Vision-DINOV2Vision_DINOV2_ModelNet.log93.2%Vision_DINOV2_ModelNet.pth
Any2Point-Audio-ImageBindAudio_imagebind_ModelNet.log92.7%Audio_imagebind_ModelNet.pth

Get Started

Installation

Create a conda environment and install basic dependencies:

git clone https://github.com/Ivan-Tang-3D/Any2Point.git
cd Any2Point

conda create -n Any2Point python=3.7
conda activate Any2Point

# Install the according versions of torch and torchvision
conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=11.3 -c pytorch

conda install -c pyg pytorch-cluster pytorch-scatter pytorch-sparse -y
pip install torch-geometric==2.0

source install.sh

Dataset

For pre-training and fine-tuning, please follow DATASET.md to install ModelNet40, ScanObjectNN, and ShapeNetPart datasets, referring to Point-BERT. Specially Put the unzip folder under data/. The Language Part Training just occupies 26GB Memory.

The final directory structure should be:

│Any2Point/
├──Any2Point_CLIP_Lang/
├──ckpts/
├──data/
│   ├──ModelNet/
│   ├──ScanObjectNN/
├──...

Fine-tuning

Please download the CLIP_pre-train.pth, DINOV2_pre-train.pth and ImageBind_audio_pre-train.pth into the ckpts/ folder.

For the PB-T50-RS split of ScanObjectNN, run:

Any2Point_CLIP_Lang

cd Any2Point_CLIP_Lang
sh fine_tune.sh

Any2Point_DINOV2_Vision

cd Any2Point_DINOV2_Vision
sh fine_tune.sh

Any2Point_ImageBind_audio

cd Any2Point_ImageBind_audio
sh fine_tune.sh

For the ModelNet40, run:

Any2Point_CLIP_Lang

cd Any2Point_clip_lang_modelnet
sh fine_tune.sh

Any2Point_DINOV2

cd Any2Point_DINOV2_modelnet
sh fine_tune.sh

Any2Point_ImageBind

cd Any2Point_ImageBind_Modelnet
sh fine_tune.sh

Citation

If you find our paper and code useful in your research, please consider giving a star ⭐ and citation 📝.

@article{tang2024any2point,
  title={Any2Point: Empowering Any-modality Large Models for Efficient 3D Understanding},
  author={Tang, Yiwen and Liu, Jiaming and Wang, Dong and Wang, Zhigang and Zhang, Shanghang and Zhao, Bin and Li, Xuelong},
  journal={arXiv preprint arXiv:2404.07989},
  year={2024}
}

Acknowledgement

This repo benefits from Pix4Point, Point-NN, PointTransformerV2, Openpoints. Thanks for their wonderful works.