PuzzleMix<T>

Models & Types · AiDotNet.Augmentation.Image

PuzzleMix (Kim et al., 2020) - optimal mixing using saliency and local statistics.

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

Constructors

Constructor Summary
PuzzleMix(double alpha, int gridSize, double probability)

Properties

Property Summary
int GridSize { get; }

Methods

Method Summary
IDictionary<string, object> GetParameters()
ImageTensor<T> ApplyPuzzleMix(ImageTensor<T> image1, ImageTensor<T> image2, Vector<T> labels1, Vector<T> labels2, AugmentationContext<T> context) Mixes two images using puzzle-style optimal transport.