遇到了一個糾結了很久得問題就是:
Traceback (most recent call last):
File "./tools/demo.py", line 138, in <module>
_, _= im_detect(net, im)
File "/home/wolf/Desktop/FPN-master/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,)
起初以爲是train.prototxt和test.prototxt文件中num_output數修改錯誤,重新修改訓練多次還是出現同樣得問題。
現在分析覺得應該是通道對不上,報錯得原因看起來就是通道對不上。分析認爲應該是運用的預訓練模型中包含了21類,但是我的檢測任務是單目標檢測任務,只有目標和背景。
後續如何解決再記錄。