Table of Contents

Property EnableModalityAugmentation

Namespace
LMKit.Translation.Training
Assembly
LM-Kit.NET.dll

EnableModalityAugmentation

Gets or sets whether to add modality-augmented samples when appropriate.

public bool EnableModalityAugmentation { get; set; }

Property Value

bool

Remarks

When true and the generated sample ends up with Multimodal or BestModality, an additional sample may be generated in the complementary modality:

  • If the resolved inference modality is Text and the content supports rasterization, a Vision sample is added.
  • If the resolved modality is Vision and the content has sufficient text (per ParsingUtils.HasMinimumLetters), a Text sample is added.
This can improve robustness across modalities during fine-tuning.