OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
opennn::AugmentationSettings Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ enabled

bool opennn::AugmentationSettings::enabled = false

Master switch; when false no augmentation is applied.

◆ horizontal_translation_maximum

float opennn::AugmentationSettings::horizontal_translation_maximum = 0.0f

Upper bound of the uniform horizontal translation range, in pixels.

◆ horizontal_translation_minimum

float opennn::AugmentationSettings::horizontal_translation_minimum = 0.0f

Lower bound of the uniform horizontal translation range, in pixels.

◆ reflection_axis_x

bool opennn::AugmentationSettings::reflection_axis_x = false

Random horizontal reflections (along the X axis) when true.

◆ reflection_axis_y

bool opennn::AugmentationSettings::reflection_axis_y = false

Random vertical reflections (along the Y axis) when true.

◆ rotation_maximum

float opennn::AugmentationSettings::rotation_maximum = 0.0f

Upper bound of the uniform rotation range, in degrees.

◆ rotation_minimum

float opennn::AugmentationSettings::rotation_minimum = 0.0f

Lower bound of the uniform rotation range, in degrees.

◆ vertical_translation_maximum

float opennn::AugmentationSettings::vertical_translation_maximum = 0.0f

Upper bound of the uniform vertical translation range, in pixels.

◆ vertical_translation_minimum

float opennn::AugmentationSettings::vertical_translation_minimum = 0.0f

Lower bound of the uniform vertical translation range, in pixels.