jdgalviss / spsg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SPSG

SPSG presents a self-supervised approach to generate high-quality, colored 3D models of scenes from RGB-D scan observations by learning to infer unobserved scene geometry and color. Rather than relying on 3D reconstruction losses to inform our 3D geometry and color reconstruction, we propose adversarial and perceptual losses operating on 2D renderings in order to achieve high-resolution, high-quality colored reconstructions of scenes. For more details, please see our paper SPSG: Self-Supervised Photometric Scene Generation from RGB-D Scans.

Code

Installation:

Training is implemented with PyTorch. This code was developed under PyTorch 1.2.0 and Python 2.7.

Please compile the extension modules by running the install_utils.sh script.

Training:

  • See python train.py --help for all train options.
  • Example command: python train.py --gpu 0 --data_path ./data/data-geo-color --frame_info_path ./data/data-frames --train_file_list ../filelists/train_list.txt --val_file_list ../filelists/val_list.txt --save_epoch 1 --save logs/mp --max_epoch 5
  • Trained model: spsg.pth (7.5M)

Testing

  • See python test_scene_as_chunks.py --help for all test options.
  • Example command: python test_scene_as_chunks.py --gpu 0 --input_data_path ./data/mp_sdf_2cm_input --target_data_path ./data/mp_sdf_2cm_target --test_file_list ../filelists/mp-rooms_val-scenes.txt --model_path spsg.pth --output ./output --max_to_vis 20

Data:

Citation:

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

@inproceedings{dai2021spsg,
    title={SPSG: Self-Supervised Photometric Scene Generation from RGB-D Scans},
    author={Dai, Angela and Siddiqui, Yawar and Thies, Justus and Valentin, Julien and Nie{\ss}ner, Matthias},
	booktitle={Proc. Computer Vision and Pattern Recognition (CVPR), IEEE},
	year={2021}
}

python train.py --gpu 0 --data_path ../data/train_data --frame_info_path ../data/data-frames --train_file_list ../filelists/mp_train-jdg.txt --val_file_list ../filelists/mp_train-jdg.txt --save_epoch 1 --save logs/mp --max_epoch 500

python train.py --gpu 0 --data_path ../data/train_data --frame_info_path ../data/data-frames --train_file_list ../filelists/mp_train-jdg.txt --save_epoch 1 --save logs/mp --max_epoch 50

python test_scene_as_chunks.py --gpu 0 --input_data_path ../data/mp_sdf_2cm_input --target_data_path ../data/mp_sdf_2cm_target --test_file_list ../filelists/mp-rooms_test-jd.txt --model_path spsg.pth --output ./output --max_to_vis 20

About


Languages

Language:C++ 41.3%Language:Python 30.4%Language:C 22.1%Language:Cuda 4.8%Language:HLSL 1.0%Language:Jupyter Notebook 0.5%Language:Shell 0.0%