princeton-vl/RAFT-Stereo

About the disparity range

claudio-bon opened this issue · 2 comments

I saw that some limitations were put in place in order to bound the maximum disparity value:

valid = (flow[0].abs() < 512) & (flow[1].abs() < 512)

def sequence_loss(flow_preds, flow_gt, valid, loss_gamma=0.9, max_flow=700):

valid = ((valid >= 0.5) & (mag < max_flow)).unsqueeze(1)

If I want to increase the maximum disparity, would increasing these constants be enough?
Moreover, is there an easy way to set a minimum disparity value?

Yes, increasing these constants should be all that is necessary. To set a minimum disparity value, you can zero-out the mask at those pixels in the same way.

Thank you for your answer.