szagoruyko / cvpr15deepcompare

Code and models for "Learning to Compare Image Patches via Convolutional Neural Networks"
http://imagine.enpc.fr/~zagoruys/deepcompare.html
Other
468 stars 169 forks source link

Training code - FPR95 #12

Closed ngunsu closed 8 years ago

ngunsu commented 8 years ago

I think you need to add fprev = L[i] to

    if L[i] > fprev then
      x:resize(j)
      y:resize(j)
      x[j] = FP/N
      y[j] = TP/P
      j = j + 1
    end

Cheers

szagoruyko commented 8 years ago

thanks. it was a very old code, I just pushed a better version https://github.com/szagoruyko/cvpr15deepcompare/commit/ad1f85e86c2be49160c2bd7bac739ab2a72a909d