Permalink
Browse files

fix potential bugs

  • Loading branch information...
1 parent de7b44b commit d76c23cc09b55eb0472d4707f4f91dd83b35958a @ShaoqingRen committed Nov 16, 2015
@@ -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
@@ -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

0 comments on commit d76c23c

Please sign in to comment.