Closed sYANGunique1111 closed 2 years ago
Hello, This operation does not aim to gather k nearest cosine neighbors in src for keypoints in dst and k nearest neighbors in dst for keypoints in src. We only search k nearest neighbors in dst for each keypoint in src, and this operation aims to obtain the bilateral similarity of the candidate corresponding points (from src_dst_cos_norm and dst_src_cos_norm).
Hello, I understand, thank you for the answer
Resolved, close.
Hello,
Thank you for your generosity to share the code. However I got stuck when I come to the forward() function of CoarseReg class.
What I understand about line 249 and line 255 is that you want to gather k nearest cosine neighbors in src for keypoints in dst and k nearest neighbors in dst for keypoints in src. I didn't understand why you used src_knn_idx for both cases? I assume it should be dst_knn_idx instead in line 249, because it gathers k nearest neighbors in src to keypoints in dst.
Best regards.