2023-12-03 20:16:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
##
|
|
|
|
## A bash script installs the required dependencies of VALL-E-X and prepares the environment
|
2023-12-23 19:31:34 +00:00
|
|
|
export SHA=3faaf8ccadb154d63b38070caf518ce9309ea0f4
|
2023-12-03 20:16:36 +00:00
|
|
|
|
2024-03-07 13:37:45 +00:00
|
|
|
SKIP_CONDA=${SKIP_CONDA:-0}
|
2023-12-03 20:16:36 +00:00
|
|
|
|
2024-03-07 13:37:45 +00:00
|
|
|
if [ $SKIP_CONDA -ne 1 ]; then
|
|
|
|
source activate transformers
|
|
|
|
else
|
|
|
|
export PATH=$PATH:/opt/conda/bin
|
|
|
|
CONDA_PREFIX=$PWD
|
|
|
|
fi
|
2023-12-03 20:16:36 +00:00
|
|
|
|
2024-02-14 20:44:12 +00:00
|
|
|
git clone https://github.com/Plachtaa/VALL-E-X.git $CONDA_PREFIX/vall-e-x && pushd $CONDA_PREFIX/vall-e-x && git checkout -b build $SHA && popd
|
2024-02-10 20:37:03 +00:00
|
|
|
|
2024-01-07 23:37:02 +00:00
|
|
|
cp -rfv $CONDA_PREFIX/vall-e-x/* ./
|
|
|
|
|
|
|
|
if [ "$PIP_CACHE_PURGE" = true ] ; then
|
|
|
|
pip cache purge
|
|
|
|
fi
|