Skip to content

Commit

Permalink
fix potential bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaoqingRen committed Nov 16, 2015
1 parent de7b44b commit d76c23c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/fast_rcnn/fast_rcnn_im_detect.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@

areas = widths .* heights;
scaled_areas = bsxfun(@times, areas(:), scales(:)'.^2);
levels = max(abs(scaled_areas - 224.^2), 2);
[~, levels] = min(abs(scaled_areas - 224.^2), [], 2);
else
levels = ones(size(im_rois, 1), 1);
end
Expand Down
2 changes: 1 addition & 1 deletion functions/fast_rcnn/fast_rcnn_prepare_image_roidb.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
% Get IoU overlap between each ex ROI and gt ROI
ex_gt_overlaps = boxoverlap(rois(ex_inds, :), rois(gt_inds, :));

assert(all(abs(max(ex_gt_overlaps, [], 2) - max_overlaps(ex_inds)) < 1^-6));
assert(all(abs(max(ex_gt_overlaps, [], 2) - max_overlaps(ex_inds)) < 10^-4));

% Find which gt ROI each ex ROI has max overlap with:
% this will be the ex ROI's gt target
Expand Down

0 comments on commit d76c23c

Please sign in to comment.