class_docstr: SpecAugment (https://arxiv.org/abs/1904.08779)
class_docstr_tok: ["SpecAugment","(","https",":","\/\/arxiv.org\/abs\/1904.08779",")"]
code: def from_config_dict(cls, config=None):
      _config = {} if config is None else config
      return SpecAugmentTransform(
          _config.get("time_warp_W", 0),
          _config.get("freq_mask_N", 0),
          _config.get("freq_mask_F", 0),
          _config.get("time_mask_N", 0),
          _config.get("time_mask_T", 0),
          _config.get("time_mask_p", 0.0),
          _config.get("mask_value", None),
      )
  
file_path: fairseq/fairseq/data/audio/feature_transforms/specaugment.py
imports: import math
  import numbers
  from typing import Optional
  import numpy
  from fairseq.data.audio.feature_transforms import AudioFeatureTransform, register_audio_feature_transform
label_desc: Use image node_id 1 for calling the SpecAugmentTransform obj's underlying member method code with example usage: obj.from_config_dict(cls, config) and returns: SpecAugmentTransform