# helia_edge.layers.preprocessing.random_flip

Random image flips with one parameter set for spatially aligned leaves.

## helia_edge.layers.preprocessing.random_flip.RandomFlip2D

`class` · `python`

```python
RandomFlip2D(horizontal: bool = True, vertical: bool = True, **kwargs={})
```

Training-only horizontal (width) and vertical (height) image flips.



Base class: [BaseAugmentation2D](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation2D).

Inherited from [BaseAugmentation](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation): [augment_masks()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_masks), [augment_sample()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_sample), [augment_targets()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_targets), [batch_augment()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.batch_augment), [call()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.call).

Source: `helia_edge/layers/preprocessing/random_flip.py:9`

### helia_edge.layers.preprocessing.random_flip.RandomFlip2D.joint

`attribute` · `python`

```python
joint = True
```

Source: `helia_edge/layers/preprocessing/random_flip.py:13`

### helia_edge.layers.preprocessing.random_flip.RandomFlip2D.horizontal

`attribute` · `python`

```python
horizontal = horizontal
```

Source: `helia_edge/layers/preprocessing/random_flip.py:17`

### helia_edge.layers.preprocessing.random_flip.RandomFlip2D.vertical

`attribute` · `python`

```python
vertical = vertical
```

Source: `helia_edge/layers/preprocessing/random_flip.py:18`

### helia_edge.layers.preprocessing.random_flip.RandomFlip2D.get_random_transformations

`method` · `python`

```python
get_random_transformations(input_shape)
```

Source: `helia_edge/layers/preprocessing/random_flip.py:20`

### helia_edge.layers.preprocessing.random_flip.RandomFlip2D.augment_samples

`method` · `python`

```python
augment_samples(inputs)
```

Source: `helia_edge/layers/preprocessing/random_flip.py:28`

### helia_edge.layers.preprocessing.random_flip.RandomFlip2D.get_config

`method` · `python`

```python
get_config()
```

Source: `helia_edge/layers/preprocessing/random_flip.py:38`
