Skip to content

Commit

Permalink
Update proposal_im_detect.m
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaoqingRen committed Sep 4, 2015
1 parent 78a01a1 commit 47c5e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/rpn/proposal_im_detect.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
pred_boxes = fast_rcnn_bbox_transform_inv(anchors, box_deltas);
% scale back
pred_boxes = bsxfun(@times, pred_boxes - 1, ...
([im_size(2), im_size(1), im_size(2), im_size(1)] - 1) / ([scaled_im_size(2), scaled_im_size(1), scaled_im_size(2), scaled_im_size(1)] - 1)) + 1;
([im_size(2), im_size(1), im_size(2), im_size(1)] - 1) ./ ([scaled_im_size(2), scaled_im_size(1), scaled_im_size(2), scaled_im_size(1)] - 1)) + 1;
pred_boxes = clip_boxes(pred_boxes, size(im, 2), size(im, 1));

assert(conf.test_binary == false);
Expand Down Expand Up @@ -126,4 +126,4 @@

contained = all(contained, 2);
end


0 comments on commit 47c5e97

Please sign in to comment.