Skip to content

Commit

Permalink
Add Copy-Paste to mosaic9() (#10165)
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
glenn-jocher authored Nov 15, 2022
1 parent abbfd69 commit ea73386
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ def load_mosaic9(self, index):
# img9, labels9 = replicate(img9, labels9) # replicate

# Augment
img9, labels9, segments9 = copy_paste(img9, labels9, segments9, p=self.hyp['copy_paste'])
img9, labels9 = random_perspective(img9,
labels9,
segments9,
Expand Down

0 comments on commit ea73386

Please sign in to comment.