Skip to content
heliaEDGE
Reference
HELIA

spec_augment

Signal-only spectrogram masking using the shared augmentation contract.

Machine-readable model

  • SpecAugment2DclassMask frequency (height) and time (width), independently per example.
class

Mask frequency (height) and time (width), independently per example.

helia_edge/layers/preprocessing/spec_augment.py:10

SpecAugment2D(
freq_mask_param: int,
time_mask_param: int,
n_freq_mask: int = 1,
n_time_mask: int = 1,
mask_value: float = 0.0,
**kwargs={},
)

Mask frequency (height) and time (width), independently per example.

Base class: BaseAugmentation2D.

Inherited from BaseAugmentation: augment_masks(), augment_sample(), augment_targets(), batch_augment(), call().