Skip to content

Commit

Permalink
Update dataloader_webcam.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Fang-Haoshu authored Apr 29, 2019
1 parent 858078d commit ab529c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataloader_webcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def crop_from_dets(img, boxes, inps, pt1, pt2):
bottomRight[1] = max(
min(imght - 1, bottomRight[1] + ht * scaleRate / 2), upLeft[1] + 5)

inps[i] = cropBox(tmp_img, upLeft, bottomRight, opt.inputResH, opt.inputResW)
inps[i] = cropBox(tmp_img.clone(), upLeft, bottomRight, opt.inputResH, opt.inputResW)
pt1[i] = upLeft
pt2[i] = bottomRight

Expand Down

0 comments on commit ab529c3

Please sign in to comment.