Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowdar committed Jul 28, 2020
1 parent cb9d3c0 commit 2bb80f8
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 26 deletions.
4 changes: 0 additions & 4 deletions addPrefixForUttID.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,3 @@ rm -rf $data/.backup
echo "$data done."
done
echo "All done."




2 changes: 0 additions & 2 deletions augmentDataByNoise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,3 @@ if [ $# -eq 2 ];then
fi

echo "All done."


2 changes: 1 addition & 1 deletion clear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ else
echo "Do not support $type now." && exit 1
fi

echo "Clear done."
echo "Clear done."
2 changes: 1 addition & 1 deletion combineVectordir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ else
run.pl $outdir/log/combine.log \
cat $inscp1 $inscp2 \| copy-vector scp:- ark,scp:$outdir/$name1.ark,$outdir/$name1.scp
fi
echo "Combine done."
echo "Combine done."
3 changes: 2 additions & 1 deletion computeCavg_unknown.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,5 @@ def get_cavg(pairs, lang_num, min_score, max_score, bins = 20, p_target = 0.5):
p_target = 0.5
cavgs, min_cavg = get_cavg(pairs, lang_num, min_score, max_score, threshhold_bins, p_target)

print(round(min_cavg, 4))
print(round(min_cavg, 4))

5 changes: 0 additions & 5 deletions computeEER-like-Bosaris.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,3 @@ def main():

if __name__ == "__main__":
main()





4 changes: 0 additions & 4 deletions computeMin-t-DCF.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,3 @@ def check():
print("ASV Pfa=%f%%, Pmiss=%f%%, 1-Pmiss,spoof=%f%%"%(P_fa_asv*100,P_miss_asv*100,(1-P_miss_spoof_asv)*100))
print("CM EER=%f%%, threshold=%f"%(cm_eer*100,cm_threshold))
print("Final min-tDCF=%f"%(min_tDCF))




4 changes: 2 additions & 2 deletions createVisualVad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ function create_vad_label(){
return 0
}

echo "Create visual vad by $data/num2num_frames..."
do_lines_task_parallel --nj $nj create_vad_label $data/utt2num_frames $data/vad.scp

echo "Create visual vad done."
echo "Create visual vad done."
2 changes: 1 addition & 1 deletion cutUttRandomFromFeats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ copy-vector ark:$outdata/vad.ark ark,scp:$outdir/vad.ark,$outdata/vad.scp
subtools/kaldi/utils/fix_data_dir.sh $outdata

rm -f $outdata/vad.tmp.ark $outdata/vad.ark $srcdata/vad.nosil.ark $srcdata/vad.nosil.scp $srcdata/feats.nosil.ark $srcdata/feats.nosil.scp
echo "Cut done."
echo "Cut done."
2 changes: 1 addition & 1 deletion getAugmentedScp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ for suffix in $suffixes;do
awk -v suffix=$suffix '{print $1"-"suffix, $2}' $original >> $output
done

echo "Generate done."
echo "Generate done."
2 changes: 0 additions & 2 deletions getScoreScp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ i=`expr $i + 1`
done

echo "Get $scp done."


2 changes: 1 addition & 1 deletion get_utt2gender.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ num1=$(wc -l $datadir/utt2spk | awk '{print $1}')
num2=$(wc -l $datadir/utt2gender | awk '{print $1}')
[ $num1 -ne $num2 ] && echo "[Error] The gender information of spk2gender is not complete." && exit 1

echo "Generate done."
echo "Generate done."
2 changes: 1 addition & 1 deletion get_utt2num_frames_from_feats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ function feat_to_len(){

echo "Generate $data/utt2num_frames according to $data/feats.scp"
do_lines_task_parallel --nj $nj feat_to_len $data/feats.scp $data/utt2num_frames
echo "Get $data/utt2num_frames done"
echo "Get $data/utt2num_frames done"

0 comments on commit 2bb80f8

Please sign in to comment.