jahaniam/semiDepth

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

mitra052 opened this issue · 2 comments

Hi Ali,
In the code, there are two forward passes , one with left images as input and the other as right image.

self.invDepth_right_est= self.build_vgg_forward(self.right,'resnet50-forward',reuse=True)

However the gradients have been updated once as shown here:
self.invDepth_right_est= self.build_vgg_forward(self.right,'resnet50-forward',reuse=True)

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!

Apologies, the second link should have been,

grads = opt_step.compute_gradients(loss)

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