mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
Merge ca15b32b769e111be808fd58a8c62e286d88e43d into abd9437e6d5419a497707748eb935e50976c3b7b
This commit is contained in:
commit
c78f4c6097
37
tools/install_from_scratch_in_conda_env.sh
Normal file
37
tools/install_from_scratch_in_conda_env.sh
Normal 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!"
|
Loading…
x
Reference in New Issue
Block a user