fizyr / keras-retinanet

Keras implementation of RetinaNet object detection.
Apache License 2.0
4.38k stars 1.96k forks source link

Help to fix F1 Score implementation #1362

Closed SalahAdDin closed 4 years ago

SalahAdDin commented 4 years ago

Hi guys,

I know i implemented the F1 score measure but... I did it wrong, I just got this warning:

keras_retinanet/bin/../../keras_retinanet/utils/eval.py:77: RuntimeWarning: invalid value encountered in double_scalars
  f1 = 2*((precision.max()*recall.max())/(precision.max()+recall.max()))

Can anyone help me to fix this?

Thanks.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale due to the lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.