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
Hi @ignacio-rocco , thanks for the great work! There are some parts of the code about how you recover the pixel position of matches from the correspondences that are not fully clear to me.
So as what I can see from your code, in lib/point_tnf.py
if delta4d is not None: \# relocalization
delta_iA,delta_jA,delta_iB,delta_jB = delta4d
diA=delta_iA.squeeze(0).squeeze(0)[iA.view(-1),jA.view(-1),iB.view(-1),jB.view(-1)]
djA=delta_jA.squeeze(0).squeeze(0)[iA.view(-1),jA.view(-1),iB.view(-1),jB.view(-1)]
diB=delta_iB.squeeze(0).squeeze(0)[iA.view(-1),jA.view(-1),iB.view(-1),jB.view(-1)]
djB=delta_jB.squeeze(0).squeeze(0)[iA.view(-1),jA.view(-1),iB.view(-1),jB.view(-1)]
iA=iA*k_size+diA.expand_as(iA)
jA=jA*k_size+djA.expand_as(jA)
iB=iB*k_size+diB.expand_as(iB)
jB=jB*k_size+djB.expand_as(jB)
You first rescale the indices in the lower resolution to the resolution before the 4D maxpooling and add the shift coming from the maxpooling operation. So the method corr_to_matches outputs the location of the correspondences in the 200x100 resolution. And the location is represented by the portion which is pixel/total_pixel_num.
I don’t understand why do you still need to do this recenter. And for me it is also not clear how this recenter works…
It would be appreciated if you could help me to understand what you are doing! Thanks!
The text was updated successfully, but these errors were encountered:
Hi @ignacio-rocco , thanks for the great work! There are some parts of the code about how you recover the pixel position of matches from the correspondences that are not fully clear to me.
So as what I can see from your code, in lib/point_tnf.py
You first rescale the indices in the lower resolution to the resolution before the 4D maxpooling and add the shift coming from the maxpooling operation. So the method corr_to_matches outputs the location of the correspondences in the 200x100 resolution. And the location is represented by the portion which is pixel/total_pixel_num.
Then in the eval_inloc.py line 179-190,
I don’t understand why do you still need to do this recenter. And for me it is also not clear how this recenter works…
It would be appreciated if you could help me to understand what you are doing! Thanks!
The text was updated successfully, but these errors were encountered: