Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix both utt2sid and utt2lid when removing long/short data #4609

Merged
merged 3 commits into from
Sep 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions egs2/TEMPLATE/tts1/tts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -498,15 +498,15 @@ if ! "${skip_data_prep}"; then
awk ' { if( NF != 1 ) print $0; } ' >"${data_feats}/${dset}/text"

# fix_data_dir.sh leaves only utts which exist in all files
_fix_opts=""
_utt_extra_files=""
if [ -e "${data_feats}/org/${dset}/utt2sid" ]; then
jonghwanhyeon marked this conversation as resolved.
Show resolved Hide resolved
_fix_opts="--utt_extra_files utt2sid "
_utt_extra_files+="utt2sid "
fi
if [ -e "${data_feats}/org/${dset}/utt2lid" ]; then
_fix_opts="--utt_extra_files utt2lid "
_utt_extra_files+="utt2lid "
fi
# shellcheck disable=SC2086
utils/fix_data_dir.sh ${_fix_opts} "${data_feats}/${dset}"
utils/fix_data_dir.sh --utt_extra_files "${_utt_extra_files}" "${data_feats}/${dset}"
kan-bayashi marked this conversation as resolved.
Show resolved Hide resolved

jonghwanhyeon marked this conversation as resolved.
Show resolved Hide resolved
# Filter x-vector
if "${use_xvector}"; then
Expand Down