dmlc / gluon-cv

Gluon CV Toolkit
http://gluon-cv.mxnet.io
Apache License 2.0
5.79k stars 1.21k forks source link

Seems a bug in AP calculating #1758

Closed whattheweather closed 1 year ago

whattheweather commented 1 year ago

https://github.com/dmlc/gluon-cv/blob/master/gluoncv/utils/metrics/voc_detection.py#L245

        # append sentinel values at both ends
        mrec = np.concatenate(([0.], rec, [1.]))
        mpre = np.concatenate(([0.], np.nan_to_num(prec), [0.])) # first 0 should be 1 ?