From b852f7272c839e96c4d27370507e2269412027db Mon Sep 17 00:00:00 2001 From: Jan Buethe Date: Wed, 8 Nov 2023 14:43:46 +0100 Subject: [PATCH] removed offset from dataset --- dnn/torch/osce/data/silk_enhancement_set.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dnn/torch/osce/data/silk_enhancement_set.py b/dnn/torch/osce/data/silk_enhancement_set.py index 65e975083..fd18c4def 100644 --- a/dnn/torch/osce/data/silk_enhancement_set.py +++ b/dnn/torch/osce/data/silk_enhancement_set.py @@ -49,7 +49,6 @@ def __init__(self, num_bands_noisy_spec=18, noisy_spec_scale='opus', noisy_apply_dct=True, - add_offset=False, add_double_lag_acorr=False, ): @@ -73,7 +72,6 @@ def __init__(self, self.gains = np.fromfile(os.path.join(path, 'features_gain.f32'), dtype=np.float32) self.num_bits = np.fromfile(os.path.join(path, 'features_num_bits.s32'), dtype=np.int32) self.num_bits_smooth = np.fromfile(os.path.join(path, 'features_num_bits_smooth.f32'), dtype=np.float32) - self.offsets = np.fromfile(os.path.join(path, 'features_offset.f32'), dtype=np.float32) self.clean_signal_hp = np.fromfile(os.path.join(path, 'clean_hp.s16'), dtype=np.int16) self.clean_signal = np.fromfile(os.path.join(path, 'clean.s16'), dtype=np.int16) @@ -86,7 +84,6 @@ def __init__(self, num_bands_noisy_spec, noisy_spec_scale, noisy_apply_dct, - add_offset, add_double_lag_acorr) self.history_len = 700 if add_double_lag_acorr else 350 @@ -120,8 +117,7 @@ def __getitem__(self, index): self.lpcs[frame_start : frame_stop], self.gains[frame_start : frame_stop], self.ltps[frame_start : frame_stop], - self.periods[frame_start : frame_stop], - self.offsets[frame_start : frame_stop] + self.periods[frame_start : frame_stop] ) if self.preemph > 0: