ardaduz / deep-video-mvs

Code for "DeepVideoMVS: Multi-View Stereo on Video with Recurrent Spatio-Temporal Fusion" (CVPR 2021)
MIT License
218 stars 29 forks source link

Width normalizer in cost volume fusion #20

Open zhouxf53 opened 2 years ago

zhouxf53 commented 2 years ago

https://github.com/ardaduz/deep-video-mvs/blob/fa14288f149c5af7b2a49092f729f5c4f44517ba/dvmvs/utils.py#L62

I think it is supposed to be

width_normalizer = (width  - 1) / 2.0
height_normalizer = (height - 1) / 2.0

The reason of that is to map x from [0, width-1] to [-1, 1] to grid sampling instead of map [0, width] to [-1, 1]