pub struct ImageAugmenterConfig {
pub rotation_range: Option<(Float, Float)>,
pub zoom_range: Option<(Float, Float)>,
pub width_shift_range: Option<Float>,
pub height_shift_range: Option<Float>,
pub horizontal_flip: bool,
pub vertical_flip: bool,
pub brightness_range: Option<(Float, Float)>,
pub random_seed: Option<u64>,
}Expand description
Configuration for image augmentation
Fields§
§rotation_range: Option<(Float, Float)>Rotation range in degrees (min, max)
zoom_range: Option<(Float, Float)>Zoom range as factors (min, max)
width_shift_range: Option<Float>Width shift range as fraction of total width
height_shift_range: Option<Float>Height shift range as fraction of total height
horizontal_flip: boolEnable horizontal flipping
vertical_flip: boolEnable vertical flipping
brightness_range: Option<(Float, Float)>Brightness adjustment range (min, max)
random_seed: Option<u64>Random seed for reproducibility
Trait Implementations§
Source§impl Clone for ImageAugmenterConfig
impl Clone for ImageAugmenterConfig
Source§fn clone(&self) -> ImageAugmenterConfig
fn clone(&self) -> ImageAugmenterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageAugmenterConfig
impl Debug for ImageAugmenterConfig
Auto Trait Implementations§
impl Freeze for ImageAugmenterConfig
impl RefUnwindSafe for ImageAugmenterConfig
impl Send for ImageAugmenterConfig
impl Sync for ImageAugmenterConfig
impl Unpin for ImageAugmenterConfig
impl UnwindSafe for ImageAugmenterConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more