def _preprocess_setup(self): """Apply desired pre_processing to the input """ self.preprocess_funcs = [] if self.random_crop: self.preprocess_funcs.append( U.random_crop(int(self.inputLength * self.audio_rate))) if self.normalize: self.preprocess_funcs.append(U.normalize(2147483648.0))
def _preprocess_setup(self): """Apply desired pre_processing to the input """ self.preprocess_funcs = [] if self.strongAugment: self.preprocess_funcs.append(U.random_scale(1.25)) if self.pad > 0: self.preprocess_funcs.append(U.padding(self.pad)) if self.random_crop: self.preprocess_funcs.append( U.random_crop(int(self.inputLength * self.audio_rate))) if self.normalize is True: self.preprocess_funcs.append(U.normalize(32768.0))