sangminwoo / Explore-And-Match

Official pytorch implementation of "Explore-And-Match: Bridging Proposal-Based and Proposal-Free With Transformer for Sentence Grounding in Videos"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ap_array is empty

aries-young opened this issue · comments

I got this error during evaluating. I found sometimes ap_array was empty. Could you kind give some advice to adjust it?

  File "/Explore-and-Match/lib/evaluate/eval.py", line 75, in compute_ap
    iou_thd2ap = dict(zip([str(e) for e in iou_thds], ap_thds))
TypeError: 'numpy.float64' object is not iterable

Hello, as for this problem, do you have some solution for me to reproduce this work ?

Since there is no error in my case, It seems that modification of the code is causing the issue.
Please take a look at the code you have modified!

And if you need further help, as the error message is too general, could you perhaps elaborate?

Since there is no error in my case, It seems that modification of the code is causing the issue. Please take a look at the code you have modified!

And if you need further help, as the error message is too general, could you perhaps elaborate?

Thank you so much. I'll check my code carefully. So sorry to bother you.

No problem :)

I had the same problem. I found that this is due to the fact that there are not moments in "Long" length.

https://github.com/sangminwoo/Explore-and-Match/blob/c07381affbad334e39793c4ca1563b45510e890e/lib/evaluate/eval.py#L135-L156

I had the same problem. I found that this is due to the fact that there are not moments in "Long" length.

https://github.com/sangminwoo/Explore-and-Match/blob/c07381affbad334e39793c4ca1563b45510e890e/lib/evaluate/eval.py#L135-L156

Have you solved this problem?

If you do not need to specify the length of time segments, maybe you can consider removing all the "range-related" codes and just run!