pub struct RandAugmentConfig {
pub n_ops: usize,
pub magnitude: f32,
pub fill_value: f32,
pub ops: Vec<AugOp>,
}Expand description
Configuration for the RandAugment policy (Cubuk et al., NeurIPS 2020).
Fields§
§n_ops: usizeN: number of operations to sample and apply per image (default: 2).
magnitude: f32M: shared magnitude on a 0–30 scale (default: 9.0).
fill_value: f32Fill value for geometric transforms when sampling outside the image boundary.
ops: Vec<AugOp>Pool of operations to sample from (default: all 14).
Implementations§
Trait Implementations§
Source§impl Clone for RandAugmentConfig
impl Clone for RandAugmentConfig
Source§fn clone(&self) -> RandAugmentConfig
fn clone(&self) -> RandAugmentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RandAugmentConfig
impl Debug for RandAugmentConfig
Auto Trait Implementations§
impl Freeze for RandAugmentConfig
impl RefUnwindSafe for RandAugmentConfig
impl Send for RandAugmentConfig
impl Sync for RandAugmentConfig
impl Unpin for RandAugmentConfig
impl UnsafeUnpin for RandAugmentConfig
impl UnwindSafe for RandAugmentConfig
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