Giter VIP home page Giter VIP logo

displacement-field-fgbg's Introduction

Displacement_Field

Official implementation of CVPR2020 paper Predicting Sharp and Accurate Occlusion Boundaries in Monocular Depth Estimation Using Displacement Fields paper link

NYUv2OC++ dataset(only for test use) download link

Visualization

1D example

1D

2D example on blurry depth image(prediction of depth estimator)

2D

Requirements:

  • PyTorch >= 0.4
  • OpenCV
  • CUDA >= 8.0(Only tested with CUDA >= 8.0)
  • Easydict

Data Preparation

sh download.sh

Training

#Use depth only as input
cd model/nyu/df_nyu_depth_only
python train.py -d 0 -f <path-to-list-file> --dataset nyu

#Use RGB image as guidance
cd model/nyu/df_nyu_rgb_guidance
python train.py -d 0 -f <path-to-list-file> --dataset nyu

Testing

#Use depth only as input
cd model/nyu/df_nyu_depth_only
python test.py -d 0 --dataset nyu --save_path <path-to-result> -f <path-to-list-file> --load_ckpt <path-checkpoint>

#Use RGB image as guidance
cd model/nyu/df_nyu_rgb_guidance
python train.py -d 0 --dataset nyu --save_path <path-to-result> -f <path-to-list-file> --load_ckpt <path-checkpoint>

Citation

@InProceedings{Ramamonjisoa_2020_CVPR,
author = {Ramamonjisoa, Michael and Du, Yuming and Lepetit, Vincent},
title = {Predicting Sharp and Accurate Occlusion Boundaries in Monocular Depth Estimation Using Displacement Fields},
booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2020}
}

Miscellaneous

The model can be trained with only synthetic data(Scenenet for example), and generalize naturally on real data.

Acknowledgement

The code is based on TorchSeg

The NYUv2-OC++ is annotated manually by 4 PhD students major in computer vision. Special thanks to Yang Xiao and Xuchong Qiu for their help in annotating the NYUv2-OC++ dataset.

displacement-field-fgbg's People

Contributors

dulucas avatar

Watchers

James Cloos avatar Saeid 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.