File size: 1,857 Bytes
ab854b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
description: Detailed exploration into Ultralytics data augmentation methods including BaseTransform, MixUp, LetterBox, ToTensor, and more for enhancing model performance.
keywords: Ultralytics, Data Augmentation, BaseTransform, MixUp, RandomHSV, LetterBox, Albumentations, classify_transforms, classify_albumentations
---

# Reference for `ultralytics/data/augment.py`

!!! note

    Full source code for this file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/data/augment.py). Help us fix any issues you see by submitting a [Pull Request](https://docs.ultralytics.com/help/contributing/) ๐Ÿ› ๏ธ. Thank you ๐Ÿ™!

---
## ::: ultralytics.data.augment.BaseTransform
<br><br>

---
## ::: ultralytics.data.augment.Compose
<br><br>

---
## ::: ultralytics.data.augment.BaseMixTransform
<br><br>

---
## ::: ultralytics.data.augment.Mosaic
<br><br>

---
## ::: ultralytics.data.augment.MixUp
<br><br>

---
## ::: ultralytics.data.augment.RandomPerspective
<br><br>

---
## ::: ultralytics.data.augment.RandomHSV
<br><br>

---
## ::: ultralytics.data.augment.RandomFlip
<br><br>

---
## ::: ultralytics.data.augment.LetterBox
<br><br>

---
## ::: ultralytics.data.augment.CopyPaste
<br><br>

---
## ::: ultralytics.data.augment.Albumentations
<br><br>

---
## ::: ultralytics.data.augment.Format
<br><br>

---
## ::: ultralytics.data.augment.ClassifyLetterBox
<br><br>

---
## ::: ultralytics.data.augment.CenterCrop
<br><br>

---
## ::: ultralytics.data.augment.ToTensor
<br><br>

---
## ::: ultralytics.data.augment.v8_transforms
<br><br>

---
## ::: ultralytics.data.augment.classify_transforms
<br><br>

---
## ::: ultralytics.data.augment.hsv2colorjitter
<br><br>

---
## ::: ultralytics.data.augment.classify_albumentations
<br><br>