demo.py中的代码错误
Opened this issue · 0 comments
abc20002929 commented
demo.py中第447行,如下
w = total_boxes[:,3] - total_boxes[:,1] + 1
h = total_boxes[:,2] - total_boxes[:,0] + 1
w、h计算错了,需对调,虽然结果一般只差1个像素。
原作者matlab代码是
w=total_boxes(:,3)-total_boxes(:,1)+1;
h=total_boxes(:,4)-total_boxes(:,2)+1;
对应python代码应该是
w = total_boxes[:,2] - total_boxes[:,0] + 1
h = total_boxes[:,3] - total_boxes[:,1] + 1