Daniel
2023-04-22 d3e57fdc50b4bca11c60cee59eb2e9a50a90884f
Merge branch 'alibaba-damo-academy:main' into main
4个文件已修改
10 ■■■■ 已修改文件
funasr/bin/vad_inference.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/models/frontend/wav_frontend.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/python/benchmark_onnx.md 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/version.txt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/bin/vad_inference.py
@@ -109,7 +109,7 @@
            fbanks, fbanks_len = self.frontend.forward_fbank(speech, speech_lengths)
            feats, feats_len = self.frontend.forward_lfr_cmvn(fbanks, fbanks_len)
            fbanks = to_device(fbanks, device=self.device)
            # feats = to_device(feats, device=self.device)
            feats = to_device(feats, device=self.device)
            feats_len = feats_len.int()
        else:
            raise Exception("Need to extract feats first, please configure frontend configuration")
@@ -131,7 +131,7 @@
                "in_cache": in_cache
            }
            # a. To device
            batch = to_device(batch, device=self.device)
            #batch = to_device(batch, device=self.device)
            segments_part, in_cache = self.vad_model(**batch)
            if segments_part:
                for batch_num in range(0, self.batch_size):
funasr/models/frontend/wav_frontend.py
@@ -34,7 +34,7 @@
    means = np.array(means_list).astype(np.float)
    vars = np.array(vars_list).astype(np.float)
    cmvn = np.array([means, vars])
    cmvn = torch.as_tensor(cmvn, dype=torch.float32)
    cmvn = torch.as_tensor(cmvn, dtype=torch.float32)
    return cmvn
funasr/runtime/python/benchmark_onnx.md
@@ -1,4 +1,4 @@
# CPU Benchmark (ONNX)
# CPU Benchmark (ONNX-python)
## Configuration
### Data set:
funasr/version.txt
@@ -1 +1 @@
0.4.2
0.4.3