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

About _build_volume_2d3 function #41

Open
gyes00205 opened this issue Jul 24, 2022 · 0 comments
Open

About _build_volume_2d3 function #41

gyes00205 opened this issue Jul 24, 2022 · 0 comments

Comments

@gyes00205
Copy link

Hi @mileyan,
Thanks for sharing the amazing work. I am curious about the _build_volume_2d3 function in line 118 of anynet.py.

batch_disp = batch_disp - batch_shift.float()

Why batch_disp = batch_disp - batch_shift.float() and not batch_disp = batch_disp + batch_shift.float() ?
Because the residual is from 2 to -2.
But in line 152,
pred_low_res = disparityregression2(-self.maxdisplist[scale]+1, self.maxdisplist[scale], stride=1)(F.softmax(-cost, dim=1))

The disparity regression is from -2 to 2

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

1 participant