Commit 9ffbaae6 authored by Paul Bethge's avatar Paul Bethge
Browse files

convert to torch tensor to numpy

parent 3cdd59cc
......@@ -764,6 +764,8 @@ class VADTokenizer():
audio_cuttings = []
for i, r in enumerate(regions):
numpy_data = r.cpu().detach().numpy()
if padding == "Silence":
extended_token = pad_with_silence(numpy_data, self.nn_input_len)
elif padding == "Data":
......
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