From 654aa69f1237a568ab418dc9ec51bdeefeedd035 Mon Sep 17 00:00:00 2001 From: Yacine Cheikhrouhou Date: Mon, 13 Nov 2023 10:02:18 +0100 Subject: [PATCH] Added a CPU setup script (based on the existing CUDA and ROCm setup scripts) --- setup-cpu.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 setup-cpu.sh diff --git a/setup-cpu.sh b/setup-cpu.sh new file mode 100755 index 0000000..dbe32f5 --- /dev/null +++ b/setup-cpu.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# get local dependencies +git submodule init +git submodule update --remote +# setup venv +python3 -m venv venv +source ./venv/bin/activate +python3 -m pip install --upgrade pip # just to be safe +# CUDA +#pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 +# CPU +pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu +# install 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 +python3 -m pip install -e ./modules/dlas/ # install DLAS +python3 -m pip install -r ./requirements.txt # install local requirements + +rm *.bat + +deactivate