> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/datasets/versions/dataset-versions/image-augmentation/augmentation-types/grayscale-augmentation.md).

# Grayscale Augmentation

Convert a percentage of your training images to grayscale so your model relies less on color.

Grayscale converts a random share of your augmented training images to grayscale. Your model learns shapes and textures that do not depend on color, while it still sees color in the rest of the images and at inference time.

## Settings

* Percent: the share of augmented images to convert to grayscale, set with the slider on the card. The default is 15%. The "Create New Version" page labels this "Percent of Outputted Images to Grayscale" and warns you above 25%.

## When to Use

* Lighting or camera color balance varies, and you want the model to rely less on exact colors.
* Your dataset is small and you want more variety.
* You want the model to keep color at inference time. To drop color everywhere, for speed, use the [Grayscale preprocessing step](https://docs.roboflow.com/datasets/versions/dataset-versions/image-preprocessing.md#grayscale) instead.

## When Not to Use

* Color is what separates your classes (ex: ripe versus unripe fruit, traffic light states, yellow versus white lane lines).

## Example

<figure><img src="https://2252499186-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVfRxNsvCh4GOyqrjmzX%2Fuploads%2Fgit-blob-aa226cebfec8bf6fd988f5e3be68561dffe09d4f%2Faugmentation-example-grayscale.png?alt=media" alt="A color image and its grayscale version, with the same boxes"><figcaption><p>Example: an image the augmentation converts to grayscale. The boxes do not change.</p></figcaption></figure>

<figure><img src="https://2252499186-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVfRxNsvCh4GOyqrjmzX%2Fuploads%2Fgit-blob-a308a7dfb45f8e24c0d0521d310e155452d20ae3%2Faugmentation-grayscale-modal.png?alt=media" alt="The Grayscale augmentation modal with Percent of Outputted Images to Grayscale at 15% and a grayscale preview"><figcaption><p>The Grayscale augmentation settings.</p></figcaption></figure>
