Yunze Man · Shuhong Zheng · Zhipeng Bao · Martial Hebert · Liang-Yan Gui · Yu-Xiong Wang
[NeurIPS 2024] [Project Page] [arXiv] [pdf] [BibTeX]
This repository contains the official PyTorch implementation of the paper "Lexicon3D: Probing Visual Foundation Models for Complex 3D Scene Understanding". The paper is available on arXiv. The project page is online at here. This work is accepted by NeurIPS 2024.
We also visualize the scene features extracted by the vision foundation models.
If you use our work in your research, please cite our publication:
@inproceedings{man2024lexicon3d,
title={Lexicon3D: Probing Visual Foundation Models for Complex 3D Scene Understanding},
author={Man, Yunze and Zheng, Shuhong and Bao, Zhipeng and Hebert, Martial and Gui, Liang-Yan and Wang, Yu-Xiong},
booktitle={Advances in Neural Information Processing Systems},
year={2024}
}
12/03/2024: Update the evaluation protocol, and update the model documentation.09/25/2024: Our paper is accepted by NeurIPS 2024.09/05/2024: Release the foundation model feature extraction and fusion scripts.06/24/2024: GitHub page initialization.Please install the required packages and dependencies according to the requirements.txt file.
In addition,
Dataset Preparation. Download the ScanNet dataset from the official repository and follow the instructions here to preprocess the ScanNet dataset and get RGB video frames and point clouds for each scannet scene.
To extract features from the foundation models, please run the corresponding scripts in the lexicon3d folder. For example, to extract features from the LSeg model, please run the following command:
python fusion_scannet_clip.py --data_dir dataset/ScanNet/openscene/ --output_dir dataset/lexicon3d/clip/ --split train --prefix clip
This script will extract features from the LSeg model for the ScanNet dataset. The extracted features will be saved in the output_dir folder, containing the feature embeddings, points, and voxel grids.
For evaluation, we provide the scripts to evaluate the extracted features on the downstream tasks. Detailed instructions can be found in the evals folder. For example, to evaluate the extracted features on the 3D Question Answering task, please cd to the evals/3D-LLM/3DLLM_BLIP2-base folder and run the following command:
python -m torch.distributed.run --nproc_per_node=4 train.py --cfg-path lavis/projects/blip2/train/finetune_sqa.yaml
Refer to the evals folder for more details on the evaluation scripts.
This repo is built based on the fantastic work OpenScene. We also thank the authors of P3DA and the authors of all relevant visual foundation models for their great work and open-sourcing their codebase.
Python
97.8%
Yunze Man · Shuhong Zheng · Zhipeng Bao · Martial Hebert · Liang-Yan Gui · Yu-Xiong Wang
[NeurIPS 2024] [Project Page] [arXiv] [pdf] [BibTeX]
This repository contains the official PyTorch implementation of the paper "Lexicon3D: Probing Visual Foundation Models for Complex 3D Scene Understanding". The paper is available on arXiv. The project page is online at here. This work is accepted by NeurIPS 2024.
We also visualize the scene features extracted by the vision foundation models.
If you use our work in your research, please cite our publication:
@inproceedings{man2024lexicon3d,
title={Lexicon3D: Probing Visual Foundation Models for Complex 3D Scene Understanding},
author={Man, Yunze and Zheng, Shuhong and Bao, Zhipeng and Hebert, Martial and Gui, Liang-Yan and Wang, Yu-Xiong},
booktitle={Advances in Neural Information Processing Systems},
year={2024}
}
12/03/2024: Update the evaluation protocol, and update the model documentation.09/25/2024: Our paper is accepted by NeurIPS 2024.09/05/2024: Release the foundation model feature extraction and fusion scripts.06/24/2024: GitHub page initialization.Please install the required packages and dependencies according to the requirements.txt file.
In addition,
Dataset Preparation. Download the ScanNet dataset from the official repository and follow the instructions here to preprocess the ScanNet dataset and get RGB video frames and point clouds for each scannet scene.
To extract features from the foundation models, please run the corresponding scripts in the lexicon3d folder. For example, to extract features from the LSeg model, please run the following command:
python fusion_scannet_clip.py --data_dir dataset/ScanNet/openscene/ --output_dir dataset/lexicon3d/clip/ --split train --prefix clip
This script will extract features from the LSeg model for the ScanNet dataset. The extracted features will be saved in the output_dir folder, containing the feature embeddings, points, and voxel grids.
For evaluation, we provide the scripts to evaluate the extracted features on the downstream tasks. Detailed instructions can be found in the evals folder. For example, to evaluate the extracted features on the 3D Question Answering task, please cd to the evals/3D-LLM/3DLLM_BLIP2-base folder and run the following command:
python -m torch.distributed.run --nproc_per_node=4 train.py --cfg-path lavis/projects/blip2/train/finetune_sqa.yaml
Refer to the evals folder for more details on the evaluation scripts.
This repo is built based on the fantastic work OpenScene. We also thank the authors of P3DA and the authors of all relevant visual foundation models for their great work and open-sourcing their codebase.
Python
97.8%