Commit 5602a97b authored by Anthony Larcher's avatar Anthony Larcher
Browse files

features debugged

parent f328bce1
Pipeline #188 skipped
...@@ -236,8 +236,10 @@ class SStream(object): ...@@ -236,8 +236,10 @@ class SStream(object):
x, rate = sidekit.frontend.io.read_audio(self.input_filename, self.sampling_rate) x, rate = sidekit.frontend.io.read_audio(self.input_filename, self.sampling_rate)
# add random noise to avoid any issue due to zeros # add random noise to avoid any issue due to zeros
#x += 0.0001 * np.random.randn(np.product(x.shape)).reshape(x.shape) np.random.seed(0)
x += 0.0001 * np.random.standard_normal(x.shape) x[:, 0] += 0.0001 * np.random.randn(x.shape[0])
if x.shape[1] == 2:
x[:, 1] += 0.0001 * np.random.randn(x.shape[0])
(yield None) (yield None)
idx = 0 idx = 0
...@@ -311,7 +313,6 @@ class SStream(object): ...@@ -311,7 +313,6 @@ class SStream(object):
fs=self.sampling_rate, fs=self.sampling_rate,
shift=self.window_shift, shift=self.window_shift,
nwin=self._win_size) nwin=self._win_size)
vad = sidekit.frontend.vad.label_fusion([vad])[0]
# Apply smoothing on the labels # Apply smoothing on the labels
vad = sidekit.frontend.vad.label_fusion(vad) vad = sidekit.frontend.vad.label_fusion(vad)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment