semiDepth icon indicating copy to clipboard operation
semiDepth copied to clipboard

2 forward passes for left and right inverse depth computation and one backward pass ?

Open mitra052 opened this issue 4 years ago • 2 comments

Hi Ali, In the code, there are two forward passes , one with left images as input and the other as right image. https://github.com/jahaniam/semiDepth/blob/f8d342dab3e370a0d7ab2721f5b4631f7b63ae40/monodepth_model.py#L508 However the gradients have been updated once as shown here: https://github.com/jahaniam/semiDepth/blob/f8d342dab3e370a0d7ab2721f5b4631f7b63ae40/monodepth_model.py#L508

So, is it equivalent to the same weights and biases being multiplied separately to the left and right image to separately produce the left and right inverse depths?(during forward pass) or are the weights and biases different for the left and right images ?

Thanks in advance!

mitra052 avatar May 22 '20 21:05 mitra052

Apologies, the second link should have been, https://github.com/jahaniam/semiDepth/blob/f8d342dab3e370a0d7ab2721f5b4631f7b63ae40/monodepth_main.py#L181

mitra052 avatar May 22 '20 21:05 mitra052

Yes, the same weights and biases are being applied to both left and right images.

jahaniam avatar May 25 '20 05:05 jahaniam