Class VideoAugmentationSettings
- Namespace
- AiDotNet.Augmentation
- Assembly
- AiDotNet.dll
Video-specific augmentation settings with industry-standard defaults.
public class VideoAugmentationSettings
- Inheritance
-
VideoAugmentationSettings
- Inherited Members
Remarks
For Beginners: These settings control how video data is augmented. Video augmentation applies both spatial (image-based) and temporal (time-based) transforms.
Properties
CropRatio
Gets or sets the fraction of frames to keep.
public double CropRatio { get; set; }
Property Value
Remarks
Default: 0.8 (keep 80% of frames)
DropoutRate
Gets or sets the dropout rate for frames.
public double DropoutRate { get; set; }
Property Value
Remarks
Default: 0.1 (drop 10% of frames)
EnableFrameDropout
Gets or sets whether frame dropout is enabled.
public bool EnableFrameDropout { get; set; }
Property Value
Remarks
Default: true
Randomly drops frames from the video.
EnableSpatialTransforms
Gets or sets whether spatial transforms (image augmentations) are applied to frames.
public bool EnableSpatialTransforms { get; set; }
Property Value
Remarks
Default: true
Applies image augmentations (flip, color jitter, etc.) to all frames consistently.
EnableSpeedChange
Gets or sets whether speed change is enabled.
public bool EnableSpeedChange { get; set; }
Property Value
Remarks
Default: true
Randomly speeds up or slows down the video.
EnableTemporalCrop
Gets or sets whether temporal crop is enabled.
public bool EnableTemporalCrop { get; set; }
Property Value
Remarks
Default: true
Randomly selects a temporal segment from the video.
EnableTemporalFlip
Gets or sets whether temporal flip (reverse) is enabled.
public bool EnableTemporalFlip { get; set; }
Property Value
Remarks
Default: true
Reverses the frame order. Good for action recognition.
MaxSpeed
Gets or sets the maximum speed factor.
public double MaxSpeed { get; set; }
Property Value
Remarks
Default: 1.2 (120% speed, faster)
MinSpeed
Gets or sets the minimum speed factor.
public double MinSpeed { get; set; }
Property Value
Remarks
Default: 0.8 (80% speed, slower)
SpatialSettings
Gets or sets the image augmentation settings for spatial transforms.
public ImageAugmentationSettings? SpatialSettings { get; set; }
Property Value
Remarks
If null, uses default ImageAugmentationSettings.
Methods
GetConfiguration()
Gets the configuration as a dictionary.
public IDictionary<string, object> GetConfiguration()