[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting
[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting
We propose a method for converting a single RGB-D input image into a 3D photo, i.e., a multi-layer representation for novel view synthesis that contains hallucinated color and depth structures in regions occluded in the original view. We use a Layered Depth Image with explicit pixel connectivity as underlying representation, and present a learning-based inpainting model that iteratively synthesizes new local color-and-depth content into the occluded region in a spatial context-aware manner. The resulting 3D photos can be efficiently rendered with motion parallax using standard graphics engines. We validate the effectiveness of our method on a wide range of challenging everyday scenes and show fewer artifacts when compared with the state-of-the-arts.
3D Photography using Context-aware Layered Depth Inpainting
Meng-Li Shih,
Shih-Yang Su,
Johannes Kopf, and
Jia-Bin Huang
In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
and the Python dependencies listed in requirements.txt
conda create -n 3DP python=3.7 anaconda
conda activate 3DP
pip install -r requirements.txt
conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit==10.1.243 -c pytorchchmod +x download.sh
./download.shPlease follow the instructions in this section.
This should allow to execute our results.
For more detailed instructions, please refer to DOCUMENTATION.md.
.jpg files (e.g., test.jpg) into the image folder. image/moon.jpgpython main.py --config argument.ymldepth/moon.npy, depth/moon.pngdepth/moon.png manually. depth/moon.png as input for 3D Photo.depth_format: '.png'require_midas: Falsesave_ply)mesh/moon.plyvideo/moon_zoom-in.mp4video/moon_swing.mp4video/moon_circle.mp4video/moon_dolly-zoom-in.mp4DOCUMENTATION.md and modified argument.yml.This work is licensed under MIT License. See LICENSE for details.
If you find our code/models useful, please consider citing our paper:
@inproceedings{Shih3DP20,
author = {Shih, Meng-Li and Su, Shih-Yang and Kopf, Johannes and Huang, Jia-Bin},
title = {3D Photography using Context-aware Layered Depth Inpainting},
booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2020}
}FileNotFoundError
Alternative repo?
Do not waste your time with this old repo; here is the working one!
Model download website failed: No route to host.
error download torch in python 3.7.9 CPU
你好,我可以生成深度图但无法生成视频,错误之处 是“段错误(核心已转储)”,以下是具体错误
No module named 'vispy'
Using CPU Instead of cuda
3D Photo Only
Thank you for your sharing! Is there a training code? I hope I can train my own dataset to see the effect