Skip to content

Commit 296449a

Browse files
authored
[plda] update plda scripts (#97)
1 parent 1eca37e commit 296449a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

examples/voxceleb/v2/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ If you are interested in the PLDA scoring (which is inferior to the simple cosin
5050
```bash
5151
local/score_plda.sh --stage 1 --stop-stage 3 --exp_dir exp_name
5252
```
53-
Note that you need to prepare an additional utt2utt file in the vox1 data directory since each speaker is enrolled with only one utterance.
5453

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

examples/voxceleb/v2/local/score_plda.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
4747
--exp_dir ${exp_dir} \
4848
--enroll_scp_path ${exp_dir}/embeddings/vox1/xvector.scp \
4949
--test_scp_path ${exp_dir}/embeddings/vox1/xvector.scp \
50-
--utt2spk ${data}/vox1/utt2utt \
50+
--utt2spk <(cat ${data}/vox1/utt2spk | awk '{print $1, $1}') \
5151
--trial ${trials_dir}/${x}
5252
done
5353
fi
@@ -67,4 +67,4 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
6767
python wespeaker/bin/compute_det.py \
6868
${scores_dir}/${x}.pldascore
6969
done
70-
fi
70+
fi

wespeaker/bin/compute_det.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def compute_det(scores_file, det_file):
4040

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

4646

0 commit comments

Comments
 (0)