Snowdar / asv-subtools

An Open Source Tools for Speaker Recognition
Apache License 2.0
590 stars 135 forks source link

Issues about get_params_for_score() #16

Closed yuyq96 closed 3 years ago

yuyq96 commented 3 years ago

Hi,

I'm trying to train my model based on recipe/voxcelebSRC, but I had a problem at the scoring stage.

In gather_results_from_epochs.sh, $enroll_cohort_name.score equals:

cosine_voxceleb1_O_enroll_voxceleb2_dev_submean_norm_voxceleb2_dev.score

But the generated score file appears to be:

cosine_voxceleb1_O_enroll_voxceleb2_devspk_xvector_submean_norm_mean_voxceleb2_dev.score

Looks like get_params_for_score() in score.sh failed to generate the correct $suffix:

final_file=spk_xvector_submean_norm_mean.ark
input_name=xvector

suffix=$(echo ${final_file%.*} | sed 's/^'"$inputname"'//g;'s/spk_xvector_mean//g'')

It only removes continuous spk_xvector_mean but is not functional for spk_xvector***_mean.

Best regards, Ya-Qi Yu

yuyq96 commented 3 years ago

This new command seems to work:

suffix=$(echo ${final_file%.*} | sed 's/^'"$inputname"'//g;s/spk_xvector\(.*\)_mean/\1/g')