Error report: Errors about run "BaiduCN1.2k Model" !
Created by: gangyahaidao
Hello guys, when i test Aishell, everything runs ok, except the high "Word Error Rate"!
then i begin to test "BaiduCN1.2k Model", something went wrong.
1.i known that BaiduCN1.2k speech rate is 8khz, then I change the hz from file demo_server.py and demo_client.py to 8000hz, when i speak from the mocrophone, i get some errors from demo_server.py, as follow:
Received utterance[length=94208] from 127.0.0.1, saved to demo_cache/20180419073019_127.0.0.1.wav.
/usr/local/lib/python2.7/dist-packages/resampy/core.py:90: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
if not np.issubdtype(x.dtype, np.float):
and when the warmup file is 8000hz, got the same error:
('Warm-up Test Case %d: %s', 0, u'/home/train/.cache/paddle/dataset/speech/Aishell/data_aishell/wav/test/S0913/BAC009S0913W0152.wav')
/usr/local/lib/python2.7/dist-packages/resampy/core.py:90: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
if not np.issubdtype(x.dtype, np.float):
I dont known why, please light me
2.question two: I dont known how to run asr server by "BaiduCN1.2k Model", here is my config file run_zh_demo_server.sh```
start demo server
CUDA_VISIBLE_DEVICES=0
python -u deploy/demo_server.py
--host_ip='localhost'
--host_port=8086
--num_conv_layers=2
--num_rnn_layers=3
--rnn_layer_size=1024
--alpha=1.15
--beta=0.15
--cutoff_prob=1.0
--cutoff_top_n=40
--use_gru=True
--use_gpu=True
--share_rnn_weights=False
--speech_save_dir='demo_cache'
--warmup_manifest='data/aishell/manifest.test'
--mean_std_path='models/baidu_zh12k/mean_std.npz'
--vocab_path='models/baidu_zh12k/vocab.txt'
--model_path='models/baidu_zh12k/params.tar.gz'
--lang_model_path='models/lm/zh_giga.no_cna_cmn.prune01244.klm'
--decoding_method='ctc_beam_search'
--specgram_type='linear'
after I startup the server, it cannot recognise wav file correct, what else I need to do?
any help will be very appreciate, thank you