Table of Contents

Class ImageMixingAugmenterBase<T>

Namespace
AiDotNet.Augmentation.Image
Assembly
AiDotNet.dll

Base class for image augmentations that mix multiple images together.

public abstract class ImageMixingAugmenterBase<T> : LabelMixingAugmentationBase<T, ImageTensor<T>>, ILabelMixingAugmentation<T, ImageTensor<T>>, IAugmentation<T, ImageTensor<T>>

Type Parameters

T

The numeric type for calculations.

Inheritance
ImageMixingAugmenterBase<T>
Implements
Inherited Members

Remarks

Use this base class for augmentations like MixUp and CutMix that combine two or more images and their labels.

Constructors

ImageMixingAugmenterBase(double, double)

Initializes a new image mixing augmentation.

protected ImageMixingAugmenterBase(double probability = 1, double alpha = 1)

Parameters

probability double

The probability of applying this augmentation.

alpha double

The alpha parameter for Beta distribution sampling.