unsky / FPN

Feature Pyramid Networks for Object Detection
522 stars 263 forks source link

when I run demo.py. i met a problem, shapes (1000,8) (84,) #87

Open mantou22 opened 5 years ago

mantou22 commented 5 years ago

Traceback (most recent call last): File "/home/xmpu234/Documents/FPN1/tools/demo.py", line 144, in , _= im_detect(net, im) File "/home/xmpu234/Documents/FPN_1/tools/../lib/fast_rcnn/test.py", line 298, in im_detect box_deltas = box_deltas * stds + means ValueError: operands could not be broadcast together with shapes (1000,8) (84,)

shabalabalabala commented 5 years ago

打开lib>>fast-rcnn>>test.py 将num_classes = 21(line 215)更改为num_classes = 2 以及修改prototxt中相应的类别