Home

Awesome

FCRN implemented in Pytorch 0.4.1

Introduction

This is a PyTorch(0.4.1) implementation of Deeper Depth Prediction with Fully Convolutional Residual Networks. It can use Fully Convolutional Residual Networks to realize monocular depth prediction. Currently, we can train FCRN using NYUDepthv2 and Kitti Odometry Dataset.

Result

NYU Depthv2

The code was tested with Python 3.5 with Pytorch 0.4.1 in 12GB TITAN X. We train 60 epochs with batch size = 16. The trained model can be download from BaiduYun.

Methodrmlrmselog10Delta1Delta2Delta3
FCRN0.1270.5730.0550.8110.9530.988
FCRN_ours0.1490.5270.0620.8050.9540.987

Image text

Kitti Odometry

Methodrmlrmselog10Delta1Delta2Delta3
FCRN_ours0.1134.8010.0480.8650.9570.984

Image text

Installation

The code was tested with Python 3.5 with Pytorch 0.4.1 in 2 GPU TITAN X.

  1. Clone the repo:

    git clone git@github.com:dontLoveBugs/FCRN_pyotrch.git
    cd FCRN_pytorch
    
  2. Install dependencies:

    For PyTorch dependency, see pytorch.org for more details.

    For custom dependencies:

    pip install matplotlib pillow tensorboardX
    
  3. Configure your dataset path in "dataloaders/path.py".

  4. Training

    To train NYU Depth v2, please do:

    python main.py --dataset nyu
    

    To train it on KITTI, please do:

    python main.py --dataset kitti