Code to replicate the experiments in the paper Inferring Light Fields from Shadows: http://openaccess.thecvf.com/content_cvpr_2018/CameraReady/3977.pdf
Observation | Hidden scene | Light field reconstruction |
---|---|---|
- Using Python 2.7, install dependencies as
- GPU (Recommended, appropriate CUDA and cuDNN for tensorflow is required):
pip install -r requirements-gpu.txt
- No GPU
pip install -r requirements.txt
- GPU (Recommended, appropriate CUDA and cuDNN for tensorflow is required):
- Download
- Data:
./download_data.sh
- (Optional) cache, to avoid costly operations.
./download_cache.sh
- Data:
- Run experiments using:
./run_experiments.sh
32GB of RAM are required to run the experiments as they are. If less RAM is avialable, the parameter --K_components allows reducing the solution size, and thus the memory required.
To compute ffts/and iffts, we rely on tensorflow, which allows easy interoperability between GPU and CPU. To replicate the experiments without downloading the cache GPU usage is recommended, as it speed ups the process by a 10x factor.
@InProceedings{Baradad_2018_CVPR,
author = {Baradad, Manel and Ye, Vickie and Yedidia, Adam B. and Durand, Frédo and Freeman, William T. and Wornell, Gregory W. and Torralba, Antonio},
title = {Inferring Light Fields From Shadows},
booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2018}