Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions egs/dihard_2018/v2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ if [ $stage -le 1 ]; then
utils/fix_data_dir.sh data/${name}_cmn
done

echo "0.01" > data/dihard_2018_dev_cmn/frame_shift
echo "0.01" > data/dihard_2018_eval_cmn/frame_shift
echo "0.01" > data/train_cmn/frame_shift
# Create segments to extract x-vectors from for PLDA training data.
# The segments are created using an energy-based speech activity
Expand Down Expand Up @@ -292,7 +294,7 @@ if [ $stage -le 12 ]; then
> $nnet_dir/results/DER_threshold.txt
der=$(grep -oP 'DIARIZATION\ ERROR\ =\ \K[0-9]+([.][0-9]+)?' \
$nnet_dir/results/DER_threshold.txt)
# Using supervised calibration, DER: 26.47%
# Using supervised calibration, DER: 26.30%
echo "Using supervised calibration, DER: $der%"
fi

Expand All @@ -309,6 +311,6 @@ if [ $stage -le 13 ]; then
> $nnet_dir/results/DER_num_spk.txt
der=$(grep -oP 'DIARIZATION\ ERROR\ =\ \K[0-9]+([.][0-9]+)?' \
$nnet_dir/results/DER_num_spk.txt)
# Using the oracle number of speakers, DER: 23.90%
# Using the oracle number of speakers, DER: 23.42%
echo "Using the oracle number of speakers, DER: $der%"
fi
4 changes: 2 additions & 2 deletions egs/wsj/s5/utils/data/get_uniform_subsegments.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run(args):
new_utt = "{utt_id}-{s:08d}-{e:08d}".format(
utt_id=utt_id, s=int(100 * start_relative),
e=int(100 * end_relative))
print ("{new_utt} {utt_id} {s} {e}".format(
print ("{new_utt} {utt_id} {s:.3f} {e:.3f}".format(
new_utt=new_utt, utt_id=utt_id, s=start_relative,
e=start_relative + args.max_segment_duration))
start += args.max_segment_duration - args.overlap_duration
Expand All @@ -90,7 +90,7 @@ def run(args):
new_utt = "{utt_id}-{s:08d}-{e:08d}".format(
utt_id=utt_id, s=int(round(100 * (start - start_time))),
e=int(round(100 * (end - start_time))))
print ("{new_utt} {utt_id} {s} {e}".format(
print ("{new_utt} {utt_id} {s:.3f} {e:.3f}".format(
new_utt=new_utt, utt_id=utt_id, s=start - start_time,
e=end - start_time))

Expand Down