Closed Parskatt closed 7 months ago
Thank you, will check tomorrow
It could also work to replace the balanced sampling with NMS kind of similar to casmtr. Havent tried though.
Basically we just want a nice spread of the matches.
matches, match_certainty = matcher.sample(warp, certainty, num=roma_max_matches)
File "/RoMa/roma/models/matcher.py", line 487, in sample
density = approx_kde(good_matches, std=0.1)
File "/RoMa/roma/utils/kde.py", line 16, in approx_kde
y = torch.multinomial(x, min(max_num_cmp,len(x.shape[-2])), replacement=False)
TypeError: object of type 'int' has no len()
@ducha-aiki can you check this out?