|
OpenNN
Open-source neural networks library
|
Optional data-augmentation transforms applied at training time. More...
#include <image_dataset.h>
Public Attributes | |
| bool | enabled = false |
| Master switch; when false no augmentation is applied. | |
| bool | reflection_axis_x = false |
| Random horizontal reflections (along the X axis) when true. | |
| bool | reflection_axis_y = false |
| Random vertical reflections (along the Y axis) when true. | |
| float | rotation_minimum = 0.0f |
| Lower bound of the uniform rotation range, in degrees. | |
| float | rotation_maximum = 0.0f |
| Upper bound of the uniform rotation range, in degrees. | |
| float | horizontal_translation_minimum = 0.0f |
| Lower bound of the uniform horizontal translation range, in pixels. | |
| float | horizontal_translation_maximum = 0.0f |
| Upper bound of the uniform horizontal translation range, in pixels. | |
| float | vertical_translation_minimum = 0.0f |
| Lower bound of the uniform vertical translation range, in pixels. | |
| float | vertical_translation_maximum = 0.0f |
| Upper bound of the uniform vertical translation range, in pixels. | |
Optional data-augmentation transforms applied at training time.
All augmentations are disabled by default; set enabled to true and configure the per-transform fields to activate them. Each rotation / translation field defines a uniform sampling range whose lower bound is the *_minimum field and upper bound is the *_maximum field.
| bool opennn::AugmentationSettings::enabled = false |
Master switch; when false no augmentation is applied.
| float opennn::AugmentationSettings::horizontal_translation_maximum = 0.0f |
Upper bound of the uniform horizontal translation range, in pixels.
| float opennn::AugmentationSettings::horizontal_translation_minimum = 0.0f |
Lower bound of the uniform horizontal translation range, in pixels.
| bool opennn::AugmentationSettings::reflection_axis_x = false |
Random horizontal reflections (along the X axis) when true.
| bool opennn::AugmentationSettings::reflection_axis_y = false |
Random vertical reflections (along the Y axis) when true.
| float opennn::AugmentationSettings::rotation_maximum = 0.0f |
Upper bound of the uniform rotation range, in degrees.
| float opennn::AugmentationSettings::rotation_minimum = 0.0f |
Lower bound of the uniform rotation range, in degrees.
| float opennn::AugmentationSettings::vertical_translation_maximum = 0.0f |
Upper bound of the uniform vertical translation range, in pixels.
| float opennn::AugmentationSettings::vertical_translation_minimum = 0.0f |
Lower bound of the uniform vertical translation range, in pixels.