ai-voice-cloning/setup-cuda.sh

22 lines
813 B
Bash

2023-02-18 02:46:44 +07:00
#!/bin/bash
# get local dependencies
2023-02-19 21:41:51 +07:00
git submodule init
git submodule update --remote
# setup venv
python3 -m venv venv
2023-02-17 00:08:27 +07:00
source ./venv/bin/activate
python3 -m pip install --upgrade pip # just to be safe
# CUDA
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117
# install requirements
python3 -m pip install -r ./requirements.txt # install local requirements
python3 -m pip install -r ./modules/tortoise-tts/requirements.txt # install TorToiSe requirements
python3 -m pip install -e ./modules/tortoise-tts/ # install TorToiSe
python3 -m pip install -r ./modules/dlas/requirements.txt # instal DLAS requirements, last, because whisperx will break a dependency here
2023-03-10 04:27:34 +07:00
python3 -m pip install -U einops==0.6.0
python3 -m pip install -U librosa==0.8.1
rm *.bat
deactivate