toandaominh1997 / EfficientDet.Pytorch

Implementation EfficientDet: Scalable and Efficient Object Detection in PyTorch
MIT License
1.44k stars 305 forks source link

maybe bugs in eval.py #42

Open huohuotm opened 4 years ago

huohuotm commented 4 years ago

Hi @toandaominh1997 thanks for sharing the code, I had few queries:

  1. in eval.py, eval_voc function, when computing mAP, first for loop class, then for loop images. Shouldn't this line for i in range(valid_dataset.__num_class__()) be for i in range(len(valid_dataset)) ? 截屏2019-12-20下午5 41 51

  2. when definevalid_dataset, used the default image_sets=[('2007', 'trainval'), ('2012', 'trainval')]. Shouldn't be [('2007', 'test')] ? 截屏2019-12-20下午5 40 11