eragonruan/text-detection-ctpn

TypeError: _vhstack_dispatcher() takes 1 positional argument but 2 were given

titan27149 opened this issue · 1 comments

File "d:/detection_ctpn/utils/rpn_msr\proposal_layer.py", line 149, in proposal_layer
keep = nms(np.hstack(proposals, scores), nms_thresh) # 进行nms操作,保留2000个proposal keep = nms(np.hstack(proposals, scores), nms_thresh)
File "<array_function internals>", line 4, in hstack
TypeError: _vhstack_dispatcher() takes 1 positional argument but 2 were given

这个问题大家遇到过吗?
我看了一下,确实是一个入参,那np.hstack(proposals, scores),如何调用的呢
@array_function_dispatch(_vhstack_dispatcher)
def hstack(tup):
感谢各位大神解答

nms(np.hstack(proposals, scores), nms_thresh)>>nms(np.hstack((proposals, scores)), nms_thresh)