GithubHelp home page GithubHelp logo

shiaoming / densefromrgbs Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 356 KB

Implementation of paper "Estimating Depth from RGB and Sparse Sensing" with pytorch.

License: MIT License

Python 98.54% Shell 0.80% MATLAB 0.66%

densefromrgbs's Introduction

Brief

Implementation of paper "Estimating Depth from RGB and Sparse Sensing" with pytorch.

Main work

Dataset loader
  • KITTI

The undistort kitti image size is approximately 1242x375, so one can not obtain crop image with size 480x640 from the original image. There will be a resize in image and the lidar points can not fill upper part of the image.

  • NYUv2

In NYUv2 there are only 1449 clean RGBD image in file nyu_depth_v2_labeled.mat, but the raw depth in raw data projected to rgb image plane have zeros areas around the border. After crop using official tool box, the image size should be 561x427. By the way, the paper says "missing depth values are filled using Colorization using optimization", which not implemented here.

NN fill

Tested on KITTI image with size 240x320, It's time consouming with size 480x640 in kitti since the upper half part of depth is all zero.

The depth image nn fill result with downsample rate 48x48 on kitti 480x640 depth image:

kitti480

Works fine in NYUv2.

with downsample rate 24x24:

nyu24

with downsample rate 48x48:

nyu48

Model

Some block details are not clear enough in the paper, so this implementation can be just a reference. There seems no perdition of hierarchical residual depth output. Moreover, the description of loss function is just one line explanation "We use Adam [15] as our optimizer, and standard pixel-wise L2 loss to train".

Train

Not implemented yet.

TODO: change train loop iteration time from epoches to batches

Setup

git clone https://github.com/Shiaoming/DensefromRGBS.git
cd DensefromRGBS
./setup.sh

densefromrgbs's People

Contributors

shiaoming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.