Skip to content

Commit

Permalink
[change]
Browse files Browse the repository at this point in the history
  • Loading branch information
jd730 committed Jun 13, 2021
1 parent bbfebaa commit aadd6f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/models/roi_heads/eopsn_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def do_nms(proposals, image_path, flips=None, nms_thresh=0.1, size_opt='lm'):
nonzero_ind = nonzero_ind[keep]
idx.append(l + nonzero_ind)
l = len(x)
paths.append(torch.ones((l), device=logits.device)*path)
boxes = boxes[keep]
paths.append(torch.ones((len(keep)), device=logits.device)*path)
boxes = boxes.div(torch.as_tensor([[W, H, W, H]], device=boxes.device))
if flips[i] == 1:
boxes[:,0] = 1-boxes[:,0]
Expand Down

0 comments on commit aadd6f6

Please sign in to comment.