some problems when load the model ane prediction
fengqiyun opened this issue · 0 comments
I had some trouble loading the model for experimental testing,The model is downloaded from your github page. I modified clean_wav.sh as follows:
guia file containing pointers to files to clean up
#if [ $# -lt 1 ]; then
#echo 'ERROR: at least wavname must be provided!'
#echo "Usage: $0 <guia_file> [optional:save_path]"
#echo "If no save_path is specified, clean file is saved in current dir"
#exit 1
NOISY_WAVNAME='/home/zyf/SEGAN/segan-master1/noisy_testset_wav_16k/p232_022.wav'
#NOISY_WAVNAME='/home/zyf/SEGAN/segan-master1/mytest/p232_022.wav'
SAVE_PATH='test_clean_results'
#if [ $# -gt 1 ]; then
SAVE_PATH="$2"
#fi
#echo "INPUT NOISY WAV: $NOISY_WAVNAME"
#echo "SAVE PATH: $SAVE_PATH"
mkdir -p $SAVE_PATH
python main.py --init_noise_std 0. --save_path segan_v1.1
--batch_size 100 --g_nl prelu --weights SEGAN-41700
--preemph 0.95 --bias_deconv True
--bias_downconv True --bias_D_conv True
--test_wav $NOISY_WAVNAME --save_clean_path $SAVE_PATH
When the path specifies a voice file, the program can run and de-noising the noisy voice. Why the path specified as a folder does not run, how can I modify the program to batch voice for noise reduction