Coder Social home page Coder Social logo

ningbende / unsuperviseddepthfromfocus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shirgur/unsuperviseddepthfromfocus

0.0 1.0 0.0 18 KB

Single Image Depth Estimation Trained via Depth from Defocus Cues

License: MIT License

Python 79.48% C++ 3.32% Cuda 17.21%

unsuperviseddepthfromfocus's Introduction

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

unsuperviseddepthfromfocus's People

Contributors

shirgur avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.