# Flip Augmentation

Randomly flip (reflect) an image vertically or horizontally to help your model be insensitive to subject orientation.

* **Horizontal:** Flip the image’s [NumPy array](https://numpy.org/) in the left/right direction.
* **Vertical:** Flip the image’s [NumPy array](https://numpy.org/) in the up/down direction.

## Example

<figure><img src="https://662926385-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6S9nPJhEX9FYH6clfW%2Fuploads%2Fgit-blob-2347cf534e5a3427388b281e11477df72becafab%2Fimage.png?alt=media" alt=""><figcaption><p>Original Image</p></figcaption></figure>

<figure><img src="https://662926385-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6S9nPJhEX9FYH6clfW%2Fuploads%2Fgit-blob-24d7af3160ff79e7aa632e953670bc2d7cf47995%2Fimage.png?alt=media" alt=""><figcaption><p>Flip Augmentation Horizontal</p></figcaption></figure>

<figure><img src="https://662926385-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6S9nPJhEX9FYH6clfW%2Fuploads%2Fgit-blob-de3aaa510e2532edf59b681b68aca5428fda19a4%2Fimage.png?alt=media" alt=""><figcaption><p>Flip Augmentation Vertical</p></figcaption></figure>

## Learn More

* [See how Flip Augmentation Improves Model Performance](https://blog.roboflow.com/how-flip-augmentation-improves-model-performance/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/datasets/dataset-versions/image-augmentation/augmentation-types/flip-augmentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
