ResizeMix<T>

Models & Types · AiDotNet.Augmentation.Image

ResizeMix augmentation - resizes one image and pastes it onto another.

Inheritance: AugmentationBase<T, ImageTensor<T>> → LabelMixingAugmentationBase<T, ImageTensor<T>> → ImageMixingAugmenterBase<T> → ResizeMix<T>

Constructors

Constructor Summary
ResizeMix(double minScale, double maxScale, double probability)

Properties

Property Summary
double MaxScale { get; }
double MinScale { get; }

Methods

Method Summary
IDictionary<string, object> GetParameters()
ImageTensor<T> ApplyResizeMix(ImageTensor<T> image1, ImageTensor<T> image2, Vector<T> labels1, Vector<T> labels2, AugmentationContext<T> context) Resizes image2 and pastes it onto a random location in image1.