GithubHelp home page GithubHelp logo

b-betty / mscnns-for-monocular-depth-estimation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaofeng94/mscnns-for-monocular-depth-estimation

0.0 1.0 0.0 4.94 MB

MSCNNS is a CNN-based approach for monocular depth estimation implemented by pytorch.

Python 95.46% MATLAB 4.54%

mscnns-for-monocular-depth-estimation's Introduction

Introduction for MSCNNS

MSCNNS (Multi-scale Sub-pixel Convolutional Network with a Neighborhood Smoothness constraint) is a CNN-based approach for monocular depth estimation.

For technical details, please see this paper (comming soon).

Prerequisites

  • Matlab R2017a (or other proper version)
  • python v3.5.x
  • pytorch v0.3.0 (or later version)
  • numpy
  • scipy

How to test

Quick test

You may use the provided model (see the BaiduYun link below) and test samples to test this apporach as follows,

python3 test.py --model <the pytorch model> --image ./test_samples/nyu_v2_175.mat

Test on the whole NYU Depth v2 dataset.

  1. Download The Dataset and The Train/Test Split file.
  2. Suppose you have saved the dataset in <path_to_data> and the split file in <path_to_split>. Open matlab/gen_test_data_for_mscn.m and assign <path_to_data> to 'NYUv2_data' and <path_to_split> to 'split_file'.
  3. run matlab/gen_test_data_for_mscn.m and the test data will be generated in '../Dataset/test'. You may change the save root 'test_root' to anywhere you like.
  4. Download the model in the BaiduYun disk (Link: https://pan.baidu.com/s/1U0hw58K2M0y5QE4c3hbNng password: qnv3)
  5. Test the model as follows,

python3 test.py --model <the pytorch model> --data <folder for the generated test data>

Results

Note that you may find the references and more comparisons in the aforementioned paper.

Quantitative results

Qualitative results

mscnns-for-monocular-depth-estimation's People

Contributors

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