unsky / FPN

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

如果想要使用hard negative mining应该如何修改? #67

Open leonshek opened 6 years ago

leonshek commented 6 years ago

@unsky hard negative mining的实现有吗?

mantou22 commented 6 years ago

when I run the demo.py,there is a problem,could you help me??????

Loaded network /home/xmpu234/Documents/FPN-caffe_1/data/faster_rcnn_models/fpn_iter_25000.caffemodel Traceback (most recent call last): File "/home/xmpu234/Documents/FPN-caffe1/tools/demo.py", line 142, in , _= im_detect(net, im) File "/home/xmpu234/Documents/FPN-caffe_1/tools/../lib/fast_rcnn/test.py", line 158, in im_detect rois2 = net.blobs['rpn_rois/p2'].data.copy() KeyError: 'rpn_rois/p2

leonshek commented 6 years ago

when I run the demo.py,there is a problem,could you help me??????

Loaded network /home/xmpu234/Documents/FPN-caffe_1/data/faster_rcnn_models/fpn_iter_25000.caffemodel Traceback (most recent call last): File "/home/xmpu234/Documents/FPN-caffe1/tools/demo.py", line 142, in , _= im_detect(net, im) File "/home/xmpu234/Documents/FPN-caffe_1/tools/../lib/fast_rcnn/test.py", line 158, in im_detect rois2 = net.blobs['rpn_rois/p2'].data.copy() KeyError: 'rpn_rois/p2

@mantou22 修改lib/rpn/proposal_layer.py 将layer_params = yaml.load(self.paramstr)修改为 try:layer_params = yaml.load(self.paramstr) except:layer_params = yaml.load(self.param_str) 修改lib/rpn/as_rois.py 将layer_params = yaml.load(self.paramstr)修改为 try:layer_params = yaml.load(self.paramstr) except:layer_params = yaml.load(self.param_str) 编译lib: cd lib rm 所有的so文件,重新build,make