Closed v-pnk closed 3 years ago
The same issue appeared with R2D2. Tried to implement quick dirty fix in caps.py and r2d2.py by detecting empty kpts1
or kpts2
and then returning empty matches
and scores
, which seems to work.
Hi @v-pnk , thanks for reporting the error can you try it again?
Hi @GrumpyZhou , It seems to work OK now. Thank you very much for your quick response!
Hello @GrumpyZhou ,
Image pair matching sometimes fails with the following error:
My guess is that there is an image, for which no keypoints are detected (yes, there is one such image),
desc1
ordesc2
array is empty,similarity
matrix is empty and therefore the max operation fails. Implementing a test somewhere, checking ifdesc1
ordesc2
are not empty (and dealing with the empty ones) would be great. I've seen the issue only with CAPS, but it could probably appear also for other methods.Thank you very much!