Thanks for your wonderful job. I tried to remove the "+1" inmake_cost_volume_v2, and the predicted disparity of the full image turns out to be a litte smaller than before, and I tried "+2" to "+10", the bigger the added number, the bigger the output disparity, so I wonder if I should add a number when constructing the cost volume, if so, what number should be added?
Thanks for your wonderful job. I tried to remove the "+1" inmake_cost_volume_v2, and the predicted disparity of the full image turns out to be a litte smaller than before, and I tried "+2" to "+10", the bigger the added number, the bigger the output disparity, so I wonder if I should add a number when constructing the cost volume, if so, what number should be added?
def make_cost_volume(left, right, max_disp): cost_volume = torch.ones( (left.size(0), left.size(1), max_disp, left.size(2), left.size(3)), dtype=left.dtype, device=left.device, )
def make_cost_volume_v2(left, right, max_disp): d_range = torch.arange(max_disp, device=left.device) d_range = d_range.view(1, 1, -1, 1, 1)