jwyang / faster-rcnn.pytorch

A faster pytorch implementation of faster r-cnn
MIT License
7.69k stars 2.33k forks source link

ZeroDivisionError when calculating recall in test_net.py #257

Open Odaimoko opened 6 years ago

Odaimoko commented 6 years ago

File "/home/zhangxingtian/disk/faster-rcnn.pytorch/test_net.py", line 331, in imdb.evaluate_detections(all_boxes, output_dir) File "/home/zhangxingtian/disk/faster-rcnn.pytorch/lib/datasets/vg.py", line 295, in evaluate_detections self._do_python_eval(output_dir,pickle=False) File "/home/zhangxingtian/disk/faster-rcnn.pytorch/lib/datasets/vg.py", line 363, in _do_python_eval f = np.nan_to_num((prec*rec)/(prec+rec)) ZeroDivisionError: division by zero

I found that tp is zero at line 116 of vg_eval.py. Could you please check it?

zc-alexfan commented 5 years ago

Hi, I am wondering if you have resolved it? I have the same problem.

Odaimoko commented 5 years ago

Hi, I am wondering if you have resolved it? I have the same problem.

I dont use this repo now, sorry. I use Detectron.pytorch.