- Python 3.9+
- PyTorch 2.0+
- Cuda 11.8
Or install dependencies with conda:
conda env create -f environment.yml
conda activate lstnet
export CUDA_HOME=$CONDA_PREFIX
export PATH=$CUDA_HOME/bin:$PATH# NOTE: The versions of the dependencies listed above are only for reference,
and please check https://pytorch.org/ for pytorch installation command for your CUDA version.
Follow the instructins here to compile libraries in the lib folder.
The S3DIS dataset can be downloaded from here (4.1G).
Download the Stanford3dDataset_v1.2_Aligned_Version.zip file and unzip it. Then, put the unzipped folder into S3DIS
and run the following command:
cd LST-Net/data
python data_prepare_s3dis.pyAfter pre-processing, the dataset has the following structure:
S3DIS/
├── Stanford3dDataset_v1.2_Aligned_Version/
│ ├── Area_1
│ ├── Area_2
│ ├── Area_3
│ ├── Area_4
│ ├── Area_5
│ ├── Area_6
├── input_0.040
├── original_ply
└── weak_label_0.001
To train the model on the S3DIS dataset, run
bash tool/train.shModify the argument values in config/s3dis/s3dis_debug.yaml (e.g., data_root, epochs, batch_size) as needed.
By default, the log and the trained models (model_last.pth and model_best.pth) will be saved in
exp/s3dis/<exp_name>/.
To test the trained model on the S3DIS dataset, run
bash tool/test.shBy default it evaluates model_best.pth and writes the results to exp/s3dis/<exp_name>/result/.
Our code is built upon the following repositories: SQN, RandLA-Net, and point-transformer. We would appreciate their authors.
If you found this repository is helpful, please cite:
@inproceedings{huang2024weakly,
title={Weakly Scene Segmentation Using Efficient Transformer},
author={Huang, Hao and Yuan, Shuaihang and Wen, Congcong and Hao, Yu and Fang, Yi},
booktitle={2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)},
year={2024},
organization={IEEE},
doi={10.1109/IROS58592.2024.10802479}
}
This repository is released under the MIT License.