Skip to content

About _build_volume_2d3 function #41

@gyes00205

Description

@gyes00205

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions