Home

Awesome

JS3C-Net

This is a forked version of JS3C-Net for training on CarlaSC dataset. You can check the results on our paper

Getting started with JS3C-Net on the CarlaSC dataset

You can check the information about the data and instructions on downloading on our CarlaSC dataset website. You can also check our models to do scene completion on the 3DMapping repo.

Dependencies

The dependencies is the same as mentioned in JS3C-Net repo. We tried our very best to accmodate it to newer version of CUDA toolkit, pytorch and so on but failed. So we released the docker image we used to run the JS3C-Net. The docker image can be downloaded on the drive. Everything needed for running JS3C-Net is already installed and the repo can be found in /home. The docker command to obatin a container from this image is provided in docker_command.bash.

<!-- However, we slightly modify the `spconv` library to suit it to modern GPU architecture. The specific libraries we use are reported below. - CUDA and cuDNN - We are using CUDA 11.3 and cuDNN 8. The Pytorch version is the latest - We directly compile the operators developed by JS3C-Net by `sh compile.sh` in `/lib`. - As to spconv, we tried to use the latest version of official spconv `v2` or `v1.2.1` but failed. So we strongly recommend to use the provided `spconv` in `/lib`. We made a slight change on the provided `spconv` based on this [git issue](https://github.com/pytorch/extension-script/issues/6) to suit it to newer Pytorch. -->

Training

Testing

Our SC models

You can check our MotionSC model and other implementations of SOTA SC models on the 3DMapping repo.


<br /> <br />

Sparse Single Sweep LiDAR Point Cloud Segmentation via Learning Contextual Shape Priors from Scene Completion (AAAI2021)

This repository is for JS3C-Net introduced in the following AAAI-2021 paper [arxiv paper]

Xu Yan, Jiantao Gao, Jie Li, Ruimao Zhang, Zhen Li*, Rui Huang and Shuguang Cui, "Sparse Single Sweep LiDAR Point Cloud Segmentation via Learning Contextual Shape Priors from Scene Completion".

If you find our work useful in your research, please consider citing:

@inproceedings{yan2021sparse,
  title={Sparse Single Sweep LiDAR Point Cloud Segmentation via Learning Contextual Shape Priors from Scene Completion},
  author={Yan, Xu and Gao, Jiantao and Li, Jie and Zhang, Ruimao and Li, Zhen and Huang, Rui and Cui, Shuguang},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={35},
  number={4},
  pages={3101--3109},
  year={2021}
}

Getting Started

Set up

Clone the repository:

git clone https://github.com/yanx27/JS3C-Net.git

Installation instructions for Ubuntu 16.04:

Data Preparation

min range: 2.5
max range: 70
future scans: 70
min extent: [0, -25.6, -2]
max extent: [51.2, 25.6,  4.4]
voxel size: 0.2
SemanticKITTI(POSS)
├── dataset
│   ├── sequences
│   │  ├── 00
│   │  │  ├── labels
│   │  │  ├── velodyne
│   │  │  ├── voxels
│   │  │  ├── [OTHER FILES OR FOLDERS]
│   │  ├── 01
│   │  ├── ... ...

SemanticKITTI

Training

Run the following command to start the training. Output (logs) will be redirected to ./logs/JS3C-Net-kitti/. You can ignore this step if you want to use our pretrained model in ./logs/JS3C-Net-kitti/.

$ python train.py --gpu 0 --log_dir JS3C-Net-kitti --config opt/JS3C_default_kitti.yaml

Evaluation Semantic Segmentation

Run the following command to evaluate model on evaluation or test dataset

$ python test_kitti_segment.py --log_dir JS3C-Net-kitti --gpu 0 --dataset [val/test]

Evaluation Semantic Scene Completion

Run the following command to evaluate model on evaluation or test dataset

$ python test_kitti_ssc.py --log_dir JS3C-Net-kitti --gpu 0 --dataset [val/test]

SemanticPOSS

Results on SemanticPOSS can be easily obtained by

$ python train.py --gpu 0 --log_dir JS3C-Net-POSS --config opt/JS3C_default_POSS.yaml
$ python test_poss_segment.py --gpu 0 --log_dir JS3C-Net-POSS

Pretrained Model

We trained our model on a single Nvidia Tesla V100 GPU with batch size 6. If you want to train on the TITAN GPU, you can choose batch size as 2. Please modify dataset_dir in args.txt to your path.

Model#ParamSegmentationCompletionCheckpoint
JS3C-Net2.69M66.056.618.5MB

Results on SemanticKITTI Benchmark

Quantitative results on SemanticKITTI Benchmark at the submisison time.

Acknowledgement

This project is not possible without multiple great opensourced codebases.

License

This repository is released under MIT License (see LICENSE file for details).