zhiheLu / TFS3D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Less is More: Towards Efficient Few-shot 3D Semantic Segmentation via Training-free Networks

Introduction

we propose an efficient Training-free Few-shot 3D Segmentation netwrok, TFS3D, and a further training-based variant, TFS3D-T. TFS3D introduces no learnable parameters and and requires no training. Specifically, TFS3D extracts dense representations by trigonometric positional encodings and achieves comparable performance to some training-based methods. Building upon TFS3D, TFS3D-T only requires to train a lightweight query-support transferring attention (QUEST), which enhances the interaction between the few-shot query and support data.

framework

Requirements

Installation

Create a conda environment and install dependencies:

cd TFS3D

conda create -n TFS3D python=3.7
conda activate TFS3D

# Install the according versions of torch and torchvision
conda install pytorch torchvision cudatoolkit

pip install -r requirements.txt
pip install pointnet2_ops_lib/.

Datasets

Installation and data preparation please follow attMPTI.

TFS3D

TFS3D does not require any training and can conduct few-shot segmentation directly via:

bash scripts/training_free.sh

TFS3D-T

Train and test our method under few-shot setting:

bash scripts/training.sh

The test procedure has been included in the above command after training and validation.

Note that the above scripts are used for 2-way 1-shot on S3DIS (S_0). Please modify the corresponding hyperparameters to conduct experiments on other settings.

Acknowledgement

We thank Point-NN, PAP-FZS3D, and attMPTI for sharing their source code.

About


Languages

Language:Python 76.0%Language:Cuda 12.8%Language:C++ 8.7%Language:Shell 1.4%Language:C 1.2%