Closed brunoeducsantos closed 4 years ago
Thanks for the feedback. Spaces removed
Hi @hgaiser , Could I be added to the list of contributors? Thanks a lot, Bruno
Could you make a PR for that ? ^^
Sorry, I didnt understand. What do you mean a PR for that?
Usually people add themselves to https://github.com/fizyr/keras-retinanet/blob/master/CONTRIBUTORS.md in a PR.
I just confirmed that the following fails on latest release (OSX), but is solved by this pull request. Somewhat high priority.
(test) MacBook-Pro:keras-retinanet ben$ python
Python 3.7.6 | packaged by conda-forge | (default, Jun 1 2020, 18:33:30)
[Clang 9.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from keras_retinanet.utils.anchors import compute_overlap
Using TensorFlow backend.
>>> import numpy as np
>>>
>>> true_array = np.expand_dims(np.array([0.,0.,5.,5.]),axis=0)
>>> prediction_array = np.expand_dims(np.array([0.,0.,10.,10.]), axis=0)
>>> retinanet_iou = compute_overlap(prediction_array,true_array)
>>> assert retinanet_iou[0][0] == (5**2/10**2)
Hi, I just want rectify the extra +1 in computation of width and height in overlap evaluation. Let me know if it makes sense.
Regards, Bruno