MasazI / cnn_depth_tensorflow

depth estimation using tensorflow
129 stars 57 forks source link

How to train #2

Open ctiennot opened 7 years ago

ctiennot commented 7 years ago

Hi,

First of all, thanks for this really clean and easy to read code. I tried to train the network using task.py but I have several questions:

Best,

Clement

ShrutiGanesh18 commented 7 years ago

@ctiennot Hey! Also, the paper states that the convolutional layers of the coarse-scale network are pre-trained on the ImageNet classification task [section 3.1.1]. I don't think there is any pre-training going here. Correct me if I am wrong.

kishankedia commented 7 years ago

@ctiennot , how you tested the model, if possible can you share the script. Were you able to generate good results using this code? Even i am not getting good results.

ctiennot commented 7 years ago

@kishankedia, I finally gave up on training the network from this repo and focuses on this repo (the weights to perform inference are provided by the author and explanations are nice).

An important point when training on the NYU depth V2 dataset is that there are two versions of the dataset:

For the eigen CNN they train them on the raw repo with 120k images + data augmetation so I guess that was the reason my training wasn't converging with only 795 images!

Good luck

kishankedia commented 7 years ago

@ctiennot Thanks or your quick reply. In this current repo i have tried to do a coarse training , however it is throwing me errors.

Can you suggest me some of the architectures that are currently giving state of the art results for depth and what metrics does the depth models use for comparing different architetures.

ctiennot commented 7 years ago

@kishankedia I think this paper is pretty much state of the art, however their weight file is missing. The repo I sent you a link in my last comment(Ivanecky) only provides relative depth estimation (i.e. the predictions are not in meters but between 0 and 1) and it is not state of the art for sure...

About the metrics, there are several ones: for instance there is the absolute error, the scale invariant error or also the thresholded precisions... Ivanecky's thesis has a well explained part on this (here)

kishankedia commented 7 years ago

@ctiennot Thanks a lot. Paper looks really good and promising. Unfortunately they have implemented the paper in caffe + matlab. It would have been better if they would implemented in tensorflow.

rvarun7777 commented 7 years ago

@ctiennot @kishankedia @ShrutiGanesh18 I have fixed all the issues from this repo including pre-trained weights and added a validation phase. I have also added two more scales to this network from the new paper. I need some time to open source the work. Every problem is fixed!

fensichen commented 6 years ago

@rvarun7777 Is it possible to ask for the open source code from you ?

Yuliang-Zou commented 6 years ago

@rvarun7777 Can you share your pretrained weights?

lijialei666 commented 6 years ago

@rvarun7777 Hello!Have you solve the issues?Can you give me your source coding?thanks.

lijialei666 commented 6 years ago

@Yuliang-Zou Hello!Have you solve the issues?Can you give me your source coding?thanks.

lijialei666 commented 6 years ago

@ctiennot Hello!Have you solve the issues?Can you give me your source coding?thanks.