Skip to content

Commit 8e3b4a0

Browse files
authored
Update MixUp augmentation alpha=beta=32.0 (#3455)
Per VOC empirical results #3380 (comment) by @developer0hye
1 parent 4aa2959 commit 8e3b4a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def __getitem__(self, index):
535535
# MixUp https://arxiv.org/pdf/1710.09412.pdf
536536
if random.random() < hyp['mixup']:
537537
img2, labels2 = load_mosaic(self, random.randint(0, self.n - 1))
538-
r = np.random.beta(8.0, 8.0) # mixup ratio, alpha=beta=8.0
538+
r = np.random.beta(32.0, 32.0) # mixup ratio, alpha=beta=32.0
539539
img = (img * r + img2 * (1 - r)).astype(np.uint8)
540540
labels = np.concatenate((labels, labels2), 0)
541541

0 commit comments

Comments
 (0)