parent
6b654b51cf
commit
300caf188b
@ -0,0 +1,3 @@
|
|||||||
|
# TODO
|
||||||
|
|
||||||
|
* DecibelNormalizer: there is a little bit difference between offline and online db norm. The computation of online db norm read feature chunk by chunk, which causes the feature size is different with offline db norm. In normalizer.cc:73, the samples.size() is different, which causes the difference of result.
|
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# this script is for memory check, so please run ./run.sh first.
|
||||||
|
|
||||||
|
set +x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ ! -d ../../tools/valgrind/install ]; then
|
||||||
|
echo "please install valgrind in the speechx tools dir.\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
. ../path.sh
|
||||||
|
|
||||||
|
model_dir=../paddle_asr_model
|
||||||
|
feat_wspecifier=./feats.ark
|
||||||
|
cmvn=./cmvn.ark
|
||||||
|
|
||||||
|
valgrind --tool=memcheck --track-origins=yes --leak-check=full --show-leak-kinds=all offline_decoder_main --feature_respecifier=ark:$feat_wspecifier --model_path=$model_dir/avg_1.jit.pdmodel --param_path=$model_dir/avg_1.jit.pdparams --dict_file=$model_dir/vocab.txt --lm_path=$model_dir/avg_1.jit.klm
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# this script is for memory check, so please run ./run.sh first.
|
||||||
|
|
||||||
|
set +x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ ! -d ../../tools/valgrind/install ]; then
|
||||||
|
echo "please install valgrind in the speechx tools dir.\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
. ../path.sh
|
||||||
|
|
||||||
|
model_dir=../paddle_asr_model
|
||||||
|
feat_wspecifier=./feats.ark
|
||||||
|
cmvn=./cmvn.ark
|
||||||
|
|
||||||
|
valgrind --tool=memcheck --track-origins=yes --leak-check=full --show-leak-kinds=all linear_spectrogram_main --wav_rspecifier=scp:$model_dir/wav.scp --feature_wspecifier=ark,t:$feat_wspecifier --cmvn_write_path=$cmvn
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# this script is for memory check, so please run ./run.sh first.
|
||||||
|
|
||||||
|
set +x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ ! -d ../../tools/valgrind/install ]; then
|
||||||
|
echo "please install valgrind in the speechx tools dir.\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
. ../path.sh
|
||||||
|
|
||||||
|
model_dir=../paddle_asr_model
|
||||||
|
|
||||||
|
valgrind --tool=memcheck --track-origins=yes --leak-check=full --show-leak-kinds=all pp-model-test --model_path=$model_dir/avg_1.jit.pdmodel --param_path=$model_dir/avg_1.jit.pdparams
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
VALGRIND_VERSION=3.18.1
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
tarball=valgrind-3.18.1.tar.bz2
|
||||||
|
|
||||||
|
url=https://sourceware.org/pub/valgrind/valgrind-3.18.1.tar.bz2
|
||||||
|
|
||||||
|
if [ -f $tarball ]; then
|
||||||
|
echo "use the $tarball have downloaded."
|
||||||
|
else
|
||||||
|
wget -t3 --no-check-certificate $url
|
||||||
|
fi
|
||||||
|
|
||||||
|
tar xjfv $tarball
|
||||||
|
|
||||||
|
mv valgrind-3.18.1 valgrind
|
||||||
|
|
||||||
|
prefix=$PWD/valgrind/install
|
||||||
|
cd ./valgrind/
|
||||||
|
./configure --prefix=$prefix
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd -
|
Loading…
Reference in new issue