Git Product home page Git Product logo

ssc's Introduction

Semantic Scene Completion

This repo contains code for the following papers

Contents

  1. Installation
  2. Data Preparation
  3. Train and Test
  4. Visualization and Evaluation
  5. Citation

Installation

Environment

  • Ubuntu 16.04
  • python 3.6
  • CUDA 10.1

Requirements:

You can install the requirements by running pip install -r requirements.txt.

If you use other versions of PyTorch or CUDA, be sure to select the corresponding version of torch_scatter.

Data Preparation

Download dataset

The raw data can be found in SSCNet.

The repackaged data can be downloaded via Google Drive or BaiduYun(Access code:lpmk).

The repackaged data includes:

rgb_tensor   = npz_file['rgb']		# pytorch tensor of color image
depth_tensor = npz_file['depth']	# pytorch tensor of depth 
tsdf_hr      = npz_file['tsdf_hr']  	# flipped TSDF, (240, 144, 240)
tsdf_lr      = npz_file['tsdf_lr']  	# flipped TSDF, ( 60,  36,  60)
target_hr    = npz_file['target_hr']	# ground truth, (240, 144, 240)
target_lr    = npz_file['target_lr']	# ground truth, ( 60,  36,  60)
position     = npz_file['position']	# 2D-3D projection mapping index

Train and Test

Configure the data path in config.py

'train': '/path/to/your/training/data'

'val': '/path/to/your/testing/data'

Train

Edit the training script run_SSC_train.sh, then run

bash run_SSC_train.sh

Test

Edit the testing script run_SSC_test.sh, then run

bash run_SSC_test.sh

Visualization and Evaluation

comging soon

Citation

If you find this work useful in your research, please cite our paper(s):

@inproceedings{Li2020aicnet,
  author     = {Jie Li, Kai Han, Peng Wang, Yu Liu, and Xia Yuan},
  title      = {Anisotropic Convolutional Networks for 3D Semantic Scene Completion},
  booktitle  = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  year       = {2020},
}

@InProceedings{Li2019ddr,
    author    = {Li, Jie and Liu, Yu and Gong, Dong and Shi, Qinfeng and Yuan, Xia and Zhao, Chunxia and Reid, Ian},
    title     = {RGBD Based Dimensional Decomposition Residual Network for 3D Semantic Scene Completion},
    booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
    month     = {June},
    pages     = {7693--7702},
    year      = {2019}
}

@article{li2019palnet,
  title={Depth Based Semantic Scene Completion With Position Importance Aware Loss},
  author={Li, Jie and Liu, Yu and Yuan, Xia and Zhao, Chunxia and Siegwart, Roland and Reid, Ian and Cadena, Cesar},
  journal={IEEE Robotics and Automation Letters},
  volume={5},
  number={1},
  pages={219--226},
  year={2019},
  publisher={IEEE}

}

ssc's People

Contributors

k-han avatar waterljwant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ssc's Issues

Pre-trained model

Hi,
thanks for the great code, do you plan to publish pretrained model too?

Traing details

Hello, you have done an excellent job in the SSC field. I want to train the PALNet, but I couldn't find the calculation for PA-Loss in main.py. It seems that they all use CrossEntropyLoss?
Thank you very much!

repackaged SUNCG Data

Hi, do you have by any chance the repackaged SUNCG data or know where to di..? Thanks in advance..! Great work by the way..

How to visualize the voxel data with meshlab?

Dear author:
Thanks for your sharing. Could you supply more details on how to visualize the voxel data in meshlab? I try to write the voxel data into .ply file and open it in meshlab but my voxels look like a 2-D image.

image

相机内参

大佬你好,我在看dataloader那个模块的时候发现相机内参你设置的是

   [0, 518.8579, 240],  # cx = K(1,3); cy = K(2,3);
  [0, 0, 1]]```
但我在NYUv2那里看到的内参和这个有一点差别,想问一下这是为什么诶

File missing on splits NYU

Hi, I think the file NYU0223_0000 is missing on the data you are providing... It is not in neither train nor test NYU splits for .npz files.

Best and thanks for sharing the work.

PA-Loss coding

Hi, thanks for the great jobs, and will you release the detailed PA-Loss?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.