--- 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 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). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/data/augment.py) 🛠️. 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.classify_augmentations