Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PartSAM: A Scalable Promptable Part Segmentation Model Trained on Native 3D Data

teaser

Installation

  1. Install the required environment
conda create -n PartSAM python=3.11 -y
conda activate PartSAM
# PyTorch 2.4.1 with CUDA 12.4
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu124
pip install lightning==2.2 h5py yacs trimesh scikit-image scikit-learn loguru
pip install mesh2sdf tetgen pymeshlab plyfile einops libigl polyscope potpourri3d simple_parsing arrgh open3d safetensors
pip install hydra-core omegaconf accelerate torchdata==0.8.0 timm igraph ninja
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.4.1+cu124.html
apt install libx11-6 libgl1 libxrender1
pip install vtk
  1. Install the other third-party dependencies as follows:
  • torkit3d and apex: follow the installation instructions provided in Point-SAM.
  • pointops: install according to SAMPart3D.
  1. Install the pretrained model weight
pip install -U "huggingface_hub[cli]"
huggingface-cli login
huggingface-cli download Czvvd/PartSAM --local-dir ./pretrained

Usage

# Modify the config file to evaluate your own meshes
python evaluation/eval_everypart.py

Training

Download Objaverse GLB files to data/objaverse/, and place the PartField checkpoint at pretrained/model_objaverse.ckpt.

Curate additional training data with:

python scripts/curate_partfield_labels.py

Start training:

accelerate launch --num_processes 1 train.py \
  checkpoint.output_dir=outputs/train

TODO

  • Release inference code of PartSAM
  • Release the pre-trained models
  • Release training code and data processing script

Acknowledgement

Our code is based on these wonderful works:

We thank the authors for their great work!

Citation

@article{zhu2025partsam,
  title={PartSAM: A Scalable Promptable Part Segmentation Model Trained on Native 3D Data}, 
  author={Zhe Zhu and Le Wan and Rui Xu and Yiheng Zhang and Honghua Chen and Zhiyang Dou and Cheng Lin and Yuan Liu and Mingqiang Wei},
  journal={arXiv preprint arXiv:2509.21965},
  year={2025}
}

About

[ICLR 2026] PartSAM: A Scalable Promptable Part Segmentation Model Trained on Native 3D Data

Resources

Stars

132 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages