This code implements the Dense Deep Depth Estimation Network (D3-Net) in PyTorch, from the paper:
On regression losses for deep depth estimation, Marcela Carvalho, Bertrand Le Saux, Pauline Trouvé-Peloux, Andrés Almansa, Frédéric Champagnat, ICIP 2018.
Fig.1 - D3-Net architecture.If you use this work for your projects, please take the time to cite our ICIP paper:
@article{Carvalho2018icip,
title={On regression losses for deep depth estimation},
author={Marcela Carvalho and Bertrand {Le Saux} and Pauline Trouv\'{e}-Peloux and Andr\'{e}s Almansa and Fr\'{e}d\'{e}ric Champagnat},
journal={ICIP},
year={2018},
publisher={IEEE}
}
We also publish the dataset for Deep Depth from Defocus estimation created using a DSLR camera and a Xtion sensor (figure 1). This dataset was presented in in:
Deep Depth from Defocus: how can defocus blur improve 3D estimation using dense neural networks?, Marcela Carvalho, Bertrand Le Saux, Pauline Trouvé-Peloux, Andrés Almansa, Frédéric Champagnat, 3DRW ECCV Workshop 2018.
The dfd_indoor dataset contains 110 images for training and 29 images for testing. The dfd_outdoor dataset contains 34 images for tests; no ground truth was given for this dataset, as the depth sensor only works on indoor scenes.
Fig.2 - Platform to acquire defocused images and corresponding depth maps.In generate_blurred_dataset.m, change lines 14 to 18 to corresponding paths in your computer and run.
If you use this work for your projects, please take the time to cite our ECCV Workshop paper:
@article{Carvalho2018eccv3drw,
title={Deep Depth from Defocus: how can defocus blur improve {3D} estimation using dense neural networks?},
author={Marcela Carvalho and Bertrand {Le Saux} and Pauline Trouv\'{e}-Peloux and Andr\'{e}s Almansa and Fr\'{e}d\'{e}ric Champagnat},
journal={3DRW ECCV Workshop},
year={2018},
publisher={IEEE}
}
Requires Python 3.6 with pip and the following libraries:
# Pytorch 0.4.0
conda install pytorch torchvision -c pytorch
# Visdom
pip install visdom
# Jupyter Notebook
pip install notebook
In generate_blurred_dataset.m, change lines 14 to 18 to corresponding paths in your computer and run.
[To be added]
Code (scripts and Jupyter notebooks) are released under the GPLv3 license for non-commercial and research purposes only. For commercial purposes, please contact the authors.