--- 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](/help/contributing/) 🛠️. Thank you 🙏! --- ## ::: ultralytics.data.augment.BaseTransform

--- ## ::: ultralytics.data.augment.Compose

--- ## ::: ultralytics.data.augment.BaseMixTransform

--- ## ::: ultralytics.data.augment.Mosaic

--- ## ::: ultralytics.data.augment.MixUp

--- ## ::: ultralytics.data.augment.RandomPerspective

--- ## ::: ultralytics.data.augment.RandomHSV

--- ## ::: ultralytics.data.augment.RandomFlip

--- ## ::: ultralytics.data.augment.LetterBox

--- ## ::: ultralytics.data.augment.CopyPaste

--- ## ::: ultralytics.data.augment.Albumentations

--- ## ::: ultralytics.data.augment.Format

--- ## ::: ultralytics.data.augment.ClassifyLetterBox

--- ## ::: ultralytics.data.augment.CenterCrop

--- ## ::: ultralytics.data.augment.ToTensor

--- ## ::: ultralytics.data.augment.v8_transforms

--- ## ::: ultralytics.data.augment.classify_transforms

--- ## ::: ultralytics.data.augment.hsv2colorjitter

--- ## ::: ultralytics.data.augment.classify_albumentations