Merge ca15b32b769e111be808fd58a8c62e286d88e43d into abd9437e6d5419a497707748eb935e50976c3b7b

This commit is contained in:
Piotr Żelasko 2025-06-27 11:30:55 +00:00 committed by GitHub
commit c78f4c6097
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,37 @@
#!/usr/bin/env bash
set -eou pipefail # "strict" mode
set -x # Print executed messages
PYTHON_VER=3.8
PYTORCH_VER=1.8.1
CUDA_VER=11.1
echo Installing k2 and PyTorch
conda install \
-c k2-fsa -c pytorch -c conda-forge \
k2 \
python=$PYTHON_VER \
cudatoolkit=$CUDA_VER \
pytorch=$PYTORCH_VER \
torchaudio
echo Installing Lhotse
pip install git+https://github.com/lhotse-speech/lhotse
echo "Installing cmake (avoids issues on older systems)"
pip install cmake
echo Installing Icefall
pip install -e .
echo Testing installation - imports
python -c "import k2; import lhotse; import icefall"
echo Testing installation - yesno recipe
cd egs/yesno/ASR
./prepare.sh
tdnn/train.py
tdnn/decode.py
echo "All set!"