VDIGPKU / M2Det

M2Det: A Single-Shot Object Detector based on Multi-Level Feature Pyramid Network
MIT License
1.45k stars 318 forks source link

OverflowError: cannot convert float infinity to integer #100

Open xudh1991 opened 5 years ago

xudh1991 commented 5 years ago

1 1080ti pytorch1.0 run demo.py

pos:(-inf,-1624725.8,nan,-1624725.8), ids:hair_drier, score:1.000 pos:(-inf,-inf,nan,nan), ids:hair_drier, score:1.000 Traceback (most recent call last): File "/home/xdh/YOLOvsSSD/M2Det-master/demo.py", line 150, in im2show = draw_detection(image, boxes, scores, cls_inds, fps) File "/home/xdh/YOLOvsSSD/M2Det-master/demo.py", line 70, in drawdetection box = [int() for in box] File "/home/xdh/YOLOvsSSD/M2Det-master/demo.py", line 70, in box = [int() for _ in box] OverflowError: cannot convert float infinity to integer

dyx118186878 commented 5 years ago

i got the same problem when i train my own model in VOCdataset ,and when i test my model this happened

xudh1991 commented 5 years ago

I've given up. The authorities are no longer upholding it.

zt0910 commented 4 years ago

i got the same problem when i train my own model in own data,anyone has idea to do ?