Skip to content

Single Image Depth Estimation Trained via Depth from Defocus Cues

License

Notifications You must be signed in to change notification settings

shirgur/UnsupervisedDepthFromFocus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single Image Depth Estimation Trained via Depth from Defocus Cues

Official implementation of "Single Image Depth Estimation Trained via Depth from Defocus Cues" (arxiv). The implementation is based on the architectures of DeepLabV3+ and Self-Attention.

Prerequisites

  • Python 3.6
  • Pytorch 0.4
  • Numpy
  • Scipy
  • OpenCV
  • Path
  • tqdm
  • h5py

Gaussian PSF Layer

In order to build the Gaussian PSF layer on your own machine, run the following line

python ext/setup.py install

Datasets

Download the official dataset and use SfmLearner for data preparation.

Download the official dataset and unpack into Test and Train folders.

Download the official dataset and use the following preprocessing instructions.

Download the official dataset from here and generate all bokeh images accorfing to Srinivasan.

Download the official dataset from here.

Training

CUDA_VISIBLE_DEVICES=0 python train.py --nof-focus 2

About

Single Image Depth Estimation Trained via Depth from Defocus Cues

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published