Giter Site home page Giter Site logo

bs-net's Introduction

Boundary-induced and scene-aggregated network for monocular depth prediction

Created by Junfeng Cao, Fei Sheng and Feng Xue.

Introduction

Monocular depth prediction is an important task in scene understanding. It aims to predict the dense depth of a single RGB image. Furthermore, it can be used for scene understanding and perception, such as object detection, segmentation, and 3D reconstruction. Obtaining accurate depth information is a prerequisite for many computer vision tasks.

The Data Preparation and Evaluation are following Junjie Hu with his work. Thanks for his valuable work.

Citation

If you find BS-Net useful in your research, please consider citing:

@article{BSNet,
title = {Boundary-induced and scene-aggregated network for monocular depth prediction},
author = {Feng Xue and Junfeng Cao and Yu Zhou and Fei Sheng and Yankai Wang and Anlong Ming},
journal = {Pattern Recognition},
pages = {107901},
year = {2021}
}

Dependencies

python 3.6
Pytorch 1.0
scipy 1.2.1
h5py 3.0.0
Pillow 6.0.0
scikit-image 0.17.2
scikit-learn 0.22.1

Data Preparation

NYUD v2

You may download the dataset from NYUD v2 and unzip it to the ./data folder. You will have the following directory structure:

BS-Net
|_ data
|   |_ nyu2_train
|   |_ nyu2_test
|   |_ nyu2_train.csv
|   |_ nyu2_test.csv

iBims-1

For iBims-1 dataset only have 100 RGB-D pictures especially designed for testing single-image depth estimation methods, you may download the dataset original images from iBims-1 . And you will have the following directory structure:

BS-Net
|_ data
|  |_ iBims1
|     |_ ibims1_core_raw
|     |_ ibims1_core_mat
|     |_ imagelist.txt

Training

For training BS-Net on NYUD v2 training dataset, you can run:

python train.py

You can download our trained model from Google Drive or Baidu Netdisk (Code: 1jmz).

Note that: the performance of the given model is slightly different from the manuscript, which is represented as follows. means smaller is better, and means larger is better.

performance

Evaluation

For testing BS-Net on NYUD v2 testing dataset, you can run:

python test.py

or testing on iBims-1 dataset you can run:

python test_iBims1.py

bs-net's People

Contributors

xuefeng-cvr 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.