wav2vec2_en, test=asr

pull/2637/head
tianhao zhang 3 years ago
parent a0e862d288
commit 0f766848c2

@ -279,7 +279,7 @@ class Wav2Vec2ASRTrainer(Trainer):
logger.info("Setup model!") logger.info("Setup model!")
# setup speech augmentation for wav2vec2 # setup speech augmentation for wav2vec2
if hasattr(config, 'speech_augment'): if hasattr(config, 'speech_augment') and self.train:
speechaugment_config = TimeDomainSpecAugmentConfig( speechaugment_config = TimeDomainSpecAugmentConfig(
config.speech_augment) config.speech_augment)
self.speech_augmentation = TimeDomainSpecAugment( self.speech_augmentation = TimeDomainSpecAugment(

Loading…
Cancel
Save