updated colab notebook

remotes/1713024294460034256/tmp_refs/heads/master
mrq 2023-10-24 23:39:46 +07:00
parent 2830d1fa96
commit 94f88886b0
2 changed files with 23 additions and 4 deletions

@ -38,10 +38,24 @@
], ],
"source":[ "source":[
"!apt install python3.8-venv\n", "!apt install python3.10-venv\n",
"!git clone https://git.ecker.tech/mrq/ai-voice-cloning/\n", "!git clone https://git.ecker.tech/mrq/ai-voice-cloning/\n",
"%cd /content/ai-voice-cloning\n", "%cd /content/ai-voice-cloning\n",
"!./setup-cuda.sh" "# get local dependencies\n",
"!git submodule init\n",
"!git submodule update --remote\n",
"# setup venv\n",
"!python3 -m venv venv\n",
"!source ./venv/bin/activate\n",
"!python3 -m pip install --upgrade pip # just to be safe\n",
"# CUDA\n",
"!pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118\n",
"# install requirements\n",
"!python3 -m pip install -r ./modules/tortoise-tts/requirements.txt # install TorToiSe requirements\n",
"!python3 -m pip install -e ./modules/tortoise-tts/ # install TorToiSe\n",
"!python3 -m pip install -r ./modules/dlas/requirements.txt # instal DLAS requirements, last, because whisperx will break a dependency here\n",
"!python3 -m pip install -e ./modules/dlas/ # install DLAS\n",
"!python3 -m pip install -r ./requirements.txt # install local requirements"
] ]
}, },
{ {
@ -115,7 +129,8 @@
"cell_type":"code", "cell_type":"code",
"source":[ "source":[
"%cd /content/ai-voice-cloning/\n", "%cd /content/ai-voice-cloning/\n",
"!./start.sh --share" "!source ./venv/bin/activate\n",
"!python3 ./src/main.py --share"
], ],
"metadata":{ "metadata":{
"id":"QRA8jF3cF-YJ" "id":"QRA8jF3cF-YJ"

@ -1,5 +1,9 @@
git+https://github.com/openai/whisper.git --extra-index-url https://download.pytorch.org/whl/cu118
torch>=2.1.0
torchvision
torchaudio
openai-whisper
more-itertools more-itertools
ffmpeg-python ffmpeg-python
gradio<=3.23.0 gradio<=3.23.0