Skip to content

Commit

Permalink
[plda] update plda scripts (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiJiJiang authored Nov 8, 2022
1 parent 1eca37e commit 296449a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/voxceleb/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ If you are interested in the PLDA scoring (which is inferior to the simple cosin
```bash
local/score_plda.sh --stage 1 --stop-stage 3 --exp_dir exp_name
```
Note that you need to prepare an additional utt2utt file in the vox1 data directory since each speaker is enrolled with only one utterance.

The results on ResNet293 (large margin, no asnorm) are:

Expand Down
4 changes: 2 additions & 2 deletions examples/voxceleb/v2/local/score_plda.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
--exp_dir ${exp_dir} \
--enroll_scp_path ${exp_dir}/embeddings/vox1/xvector.scp \
--test_scp_path ${exp_dir}/embeddings/vox1/xvector.scp \
--utt2spk ${data}/vox1/utt2utt \
--utt2spk <(cat ${data}/vox1/utt2spk | awk '{print $1, $1}') \
--trial ${trials_dir}/${x}
done
fi
Expand All @@ -67,4 +67,4 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
python wespeaker/bin/compute_det.py \
${scores_dir}/${x}.pldascore
done
fi
fi
2 changes: 1 addition & 1 deletion wespeaker/bin/compute_det.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def compute_det(scores_file, det_file):

def main(*scores_files):
for scores_file in scores_files:
det_file = scores_file[:-6] + ".det.png"
det_file = scores_file + ".det.png"
compute_det(scores_file, det_file)


Expand Down

0 comments on commit 296449a

Please sign in to comment.