[superglue] Fixed the way batch mask was applied to the scores before match assignment computation (#39968)
fix: mask filling to score was wrong
This commit is contained in:
@@ -423,3 +423,5 @@ class SuperGlueModelIntegrationTest(unittest.TestCase):
|
||||
torch.sum(~torch.isclose(predicted_matching_scores_values, expected_matching_scores_values, atol=1e-2)) < 4
|
||||
)
|
||||
self.assertTrue(torch.sum(predicted_matches_values != expected_matches_values) < 4)
|
||||
self.assertTrue(torch.all(outputs.matches[0, 1] < torch.sum(outputs.mask[0, 0])))
|
||||
self.assertTrue(torch.all(outputs.matches[0, 0] < torch.sum(outputs.mask[0, 1])))
|
||||
|
||||
Reference in New Issue
Block a user