This is the Caffe implementation of 3D Graph Neural Networks for RGBD Semantic Segmentation:
Required CUDA (7.0) + Ubuntu14.04.
For installation, please follow the instructions of Caffe and DeepLab v2.
Please download the data and model through the google drive link: https://drive.google.com/file/d/1AqQA-ipfc80caklR9kyUxunycrZjg7T2/view?usp=sharing
- Download the trained model (https://mycuhk-my.sharepoint.com/:u:/g/personal/1155051740_link_cuhk_edu_hk/ETsf3ekhGbxOp1xYKJxv2hQB8I5OCCui86QLvWvK65_5sw?e=KThQe9).
- Download the prepared training data (prepared hdf5 data) (https://mycuhk-my.sharepoint.com/:u:/g/personal/1155051740_link_cuhk_edu_hk/EVGJ_xXvtNVCh7spid94AmQB_byhW49i-VH_vqx8oZbrZQ?e=COhKwr).
- Download the testing data (https://mycuhk-my.sharepoint.com/:u:/g/personal/1155051740_link_cuhk_edu_hk/EVdjeNQqnINOj359HN8WXDgBsouAqSoZC1lRgkSbPNo2hA?e=e0w2sO).
- Download the original provided data (https://mycuhk-my.sharepoint.com/:u:/g/personal/1155051740_link_cuhk_edu_hk/EZuJHYVcULRNkQ3qm34ugIoBg-69Vprq2POiaat4u5ZLXQ?e=QmWXec).
-
Clone the repository.
-
Build Caffe and matcaffe:
cd caffe_code make -j8 && make matcaffe
-
Inference:
- Evaluation code is in folder 'matlabscript'.
- Download trained models and unzip it. Pretrained model is saved in folder "model/nyu_40/".
cd matlabscript run nyu_crop_data_mask_msc.m
- The result is saved in folder "../result/nyu_40_msc/"
-
Training:
- Training data preparation
cd matlabscript run generatedata (setting training = true) cd .. cd train_data_hdf5_file_generate python generate_hdf5 cd ..
We have also provided the training data in folder "traindata/"
- Run caffe training
If you use our code for research, please cite our paper:
@inproceedings{qi20173d,
title={3D Graph Neural Networks for RGBD Semantic Segmentation},
author={Qi, Xiaojuan and Liao, Renjie and Jia, Jiaya and Fidler, Sanja and Urtasun, Raquel},
booktitle={ICCV},
year={2017}
}
If you have any question or request about the code and data, please email me at [email protected] . If you need more information for other datasets plesase send email.
MIT License