Skip to content

Commit

Permalink
Merge pull request espnet#4227 from simpleoier/fix_longformer
Browse files Browse the repository at this point in the history
fix issues about longformer package upgrades pytorch package
  • Loading branch information
sw005320 authored Apr 1, 2022
2 parents 06f21af + aee683f commit c4aba12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion egs2/zh_openslr38/asr1/local/check_train_test_duplicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
print(count, "duplicates in", test_name)

# if input("continue? [y/n]") == 'y':
# remove all instances of duplicate uttids in these files: spk2utt, text, utt2spk, wav.scp
# remove all instances of duplicate uttids in: spk2utt, text, utt2spk, wav.scp
with open(f"data/{test_name}/spk2utt", "r") as f:
# replace all uttid with empty string
text = f.read()
Expand Down
10 changes: 5 additions & 5 deletions tools/installers/install_longformer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ if ! "${python_36_plus}"; then
exit 1
else

if $(pt_plus 1.6.1); then
pip install git+https://github.com/roshansh-cmu/longformer.git
pip install datasets bert-score
pip install git+https://github.com/Maluuba/nlg-eval.git@master
if $(pt_plus 1.8.0); then
python -m pip install git+https://github.com/roshansh-cmu/longformer.git
python -m pip install datasets bert-score
python -m pip install git+https://github.com/Maluuba/nlg-eval.git@master
else
echo "[WARNING] Longformer requires pytorch>=1.6.1"
echo "[WARNING] Longformer requires pytorch>=1.8.*"
fi

fi
Expand Down

0 comments on commit c4aba12

Please sign in to comment.