Skip to content

Commit

Permalink
Perspective Aug ultralytics#16
Browse files Browse the repository at this point in the history
  • Loading branch information
manole-alexandru committed Apr 15, 2023
1 parent 19b1bc7 commit 9835fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ def __getitem__(self, index):
seg, _, _ = random_perspective(seg, labels, degrees=hyp['degrees'], translate=hyp['translate'], scale=hyp['scale'],
shear=hyp['shear'], perspective=hyp['perspective'], random_parameters=random_parameters)

cv2.imwrite('runs/image' + str(index) + '.jpg', img)
cv2.imwrite('runs/mask' + str(index) + '.png', seg)
# cv2.imwrite('runs/image' + str(index) + '.jpg', img)
# cv2.imwrite('runs/mask' + str(index) + '.png', seg)
nl = len(labels) # number of labels
if nl:
labels[:, 1:5] = xyxy2xywhn(labels[:, 1:5], w=img.shape[1], h=img.shape[0], clip=True, eps=1E-3)
Expand Down

0 comments on commit 9835fcc

Please sign in to comment.