Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mitra052 opened this issue May 22, 2020 · 2 comments

Comments

@mitra052
Copy link

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!

@mitra052
Copy link
Author

Apologies, the second link should have been,

grads = opt_step.compute_gradients(loss)

@jahaniam
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants