cnnimageretrieval-pytorch icon indicating copy to clipboard operation
cnnimageretrieval-pytorch copied to clipboard

Why to decrease positions of positive based on the number of junk images appearing before them in 'evaluate.py'?

Open liyongqing-1101 opened this issue 2 years ago • 1 comments

k = 0
ij = 0
if len(junk):
    # decrease positions of positives based on the number of
    # junk images appearing before them
    ip = 0
    while ip < len(pos):
        while ij < len(junk) and pos[ip] > junk[ij]:
            k += 1
            ij += 1
        pos[ip] = pos[ip] - k
        ip += 1

liyongqing-1101 avatar Mar 29 '22 06:03 liyongqing-1101

@liyongqing-1101 In the evaluation protocol it is stated that images considered junk are not taken into consideration upon computing the map. At least that is my take from the paper https://arxiv.org/pdf/1803.11285.pdf.

Eduard6421 avatar Jan 24 '23 00:01 Eduard6421