LGI4temporalgrounding icon indicating copy to clipboard operation
LGI4temporalgrounding copied to clipboard

in compute_tiou return float(intersection) / union ZeroDivisionError: float division by zero

Open nickheat8830 opened this issue 3 years ago • 2 comments

The data at this time is: pred[0]=35.27944378733635 pred[1]=33.94881270647049 gt[0]=34.77 gt[1]=34.77

nickheat8830 avatar Oct 21 '21 05:10 nickheat8830

hi, i meet this issue too, do you know how to fix it ? the log is as followings:

File "/data1/chentongbao/single_moment_retrieval/LGI4temporalgrounding/src/utils/eval_utils.py", line 57, in eval_instance cur_tiou = compute_tiou(loc, gt) File "/data1/chentongbao/single_moment_retrieval/LGI4temporalgrounding/src/utils/eval_utils.py", line 7, in compute_tiou return float(intersection) / union ZeroDivisionError: float division by zero Visualization of LGI is saved in results/anet/tgn_lgi/LGI/qualitative/Train/epoch061_qrn.png Write json file in results/anet/tgn_lgi/LGI/predictions/Train/epoch061.json pred: [[0.3757 0.946 ]] gt: [0.315 1. ] tIoU: 0.8325

tongbaochen avatar Mar 06 '22 05:03 tongbaochen

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

nickheat8830 avatar Mar 06 '22 05:03 nickheat8830