Skip to content

Commit 04f9378

Browse files
Wonkyumcsukuangfj
authored andcommitted
fix script read_mat (#3852)
1 parent 638376b commit 04f9378

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

egs/aishell/s10/chain/feat_dataset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import kaldi_pybind.nnet3 as nnet3
1616
import kaldi
1717

18-
from common import read_mat
1918
from common import splice_feats
2019
from model import get_chain_model
2120

@@ -110,7 +109,7 @@ def __call__(self, batch):
110109
for b in batch:
111110
key, rxfilename = b
112111
key_list.append(key)
113-
feat = read_mat(rxfilename)
112+
feat = kaldi.read_mat(rxfilename).numpy()
114113
feat_len = feat.shape[0]
115114
output_len = (feat_len + self.frame_subsampling_factor -
116115
1) // self.frame_subsampling_factor

0 commit comments

Comments
 (0)