filipradenovic / revisitop

Revisiting Oxford and Paris: Large-Scale Image Retrieval Benchmarking
http://cmp.felk.cvut.cz/revisitop
251 stars 48 forks source link

Throw error when pos is empty #6

Open willard-yuan opened 5 years ago

willard-yuan commented 5 years ago

@filipradenovic Hi filipradenovic, I find there is a bug when pos is empty in evaluate.py#L80. If there is no positive result in the ranking result, such as rank@10, the pos is empty, then it will throw an error. How you fix the bug? I'm on the way to try to understand the MAP in the file of evaluate.py.

Thanks.