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
In class LightGlue(nn.Module), the images are not mentioned as required_data_keys. But later on they are needed in the forward function:
kpts0 = normalize_keypoints(
kpts0_, size=data.get('image_size0'), shape=data['image0'].shape)
kpts1 = normalize_keypoints(
kpts1_, size=data.get('image_size1'), shape=data['image1'].shape)
The text was updated successfully, but these errors were encountered:
Thanks for opening your issue! This was indeed a bug in the initial code, and has since been fixed in PR #22. Furthermore, in the newest PR #37, we perform normalization based on the available keypoints, so it is not required to forward image_size or image to the matcher anymore.
I suggest pulling the latest changes where this issue should be fixed.
Hi there,
Thanks for this great work.
In class LightGlue(nn.Module), the images are not mentioned as required_data_keys. But later on they are needed in the forward function:
kpts0 = normalize_keypoints(
kpts0_, size=data.get('image_size0'), shape=data['image0'].shape)
kpts1 = normalize_keypoints(
kpts1_, size=data.get('image_size1'), shape=data['image1'].shape)
The text was updated successfully, but these errors were encountered: