You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you're using colmap coordinate fasion, the left- and right-most pixel should be 0.5 and W-0.5.
The current code is converting them to [-1+1/W, 1-1/W].
Shouldn't the conversion be: (2*x-1) / (W-1) - 1?
That would make the left- and right-most pixel exactly [-1, 1].
The text was updated successfully, but these errors were encountered:
We don't want to make the left and right-most pixel exactly [-1,1] because we are (hopefully) using align_corners=False everywhere. Thus we want them to be [-1 + 1/h, 1-1/h].
Hi, Johan,
I have a question about the coordinates normalization in RoMa.
RoMa/roma/models/matcher.py
Lines 565 to 572 in 36389ef
As you're using colmap coordinate fasion, the left- and right-most pixel should be
0.5
andW-0.5
.The current code is converting them to
[-1+1/W, 1-1/W]
.Shouldn't the conversion be:
(2*x-1) / (W-1) - 1
?That would make the left- and right-most pixel exactly
[-1, 1]
.The text was updated successfully, but these errors were encountered: