From 0b364b590eadcadc6439d336ded063b72dea0d0d Mon Sep 17 00:00:00 2001 From: mrq Date: Fri, 10 Mar 2023 04:22:47 +0000 Subject: [PATCH] maybe don't --force-reinstall to try and force downgrading, it just forces everything to uninstall then reinstall --- setup-cuda.bat | 9 ++++++--- setup-cuda.sh | 10 +++++++--- setup-directml.bat | 9 ++++++--- setup-rocm.sh | 10 +++++++--- update-force.bat | 8 +++++--- update-force.sh | 10 ++++++---- 6 files changed, 37 insertions(+), 19 deletions(-) diff --git a/setup-cuda.bat b/setup-cuda.bat index d3563b4..0fc878d 100755 --- a/setup-cuda.bat +++ b/setup-cuda.bat @@ -6,9 +6,12 @@ call .\venv\Scripts\activate.bat python -m pip install --upgrade pip python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 python -m pip install -r .\requirements.txt -python -m pip install --force-reinstall -r .\modules\tortoise-tts\requirements.txt -python -m pip install --force-reinstall -e .\modules\tortoise-tts\ -python -m pip install --force-reinstall -r .\modules\dlas\requirements.txt +python -m pip install -r .\modules\tortoise-tts\requirements.txt +python -m pip install -e .\modules\tortoise-tts\ +python -m pip install -r .\modules\dlas\requirements.txt + +python -m pip install -U -r einops==0.6.0 +python -m pip install -U -r librosa==0.8.1 xcopy .\modules\dlas\bitsandbytes_windows\* .\venv\Lib\site-packages\bitsandbytes\. /Y xcopy .\modules\dlas\bitsandbytes_windows\cuda_setup\* .\venv\Lib\site-packages\bitsandbytes\cuda_setup\. /Y diff --git a/setup-cuda.sh b/setup-cuda.sh index 3a26014..082faee 100755 --- a/setup-cuda.sh +++ b/setup-cuda.sh @@ -10,9 +10,13 @@ python3 -m pip install --upgrade pip # just to be safe 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 --force-reinstall -r ./modules/tortoise-tts/requirements.txt # install TorToiSe requirements -python3 -m pip install --force-reinstall -e ./modules/tortoise-tts/ # install TorToiSe -python3 -m pip install --force-reinstall -r ./modules/dlas/requirements.txt # instal DLAS requirements, last, because whisperx will break a dependency here +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 -U -r einops==0.6.0 +python3 -m pip install -U -r librosa==0.8.1 + rm *.bat deactivate \ No newline at end of file diff --git a/setup-directml.bat b/setup-directml.bat index c085edf..d6d8adb 100755 --- a/setup-directml.bat +++ b/setup-directml.bat @@ -6,9 +6,12 @@ call .\venv\Scripts\activate.bat python -m pip install --upgrade pip python -m pip install torch torchvision torchaudio torch-directml python -m pip install -r .\requirements.txt -python -m pip install --force-reinstall -r .\modules\tortoise-tts\requirements.txt -python -m pip install --force-reinstall -e .\modules\tortoise-tts\ -python -m pip install --force-reinstall -r .\modules\dlas\requirements.txt +python -m pip install -r .\modules\tortoise-tts\requirements.txt +python -m pip install -e .\modules\tortoise-tts\ +python -m pip install -r .\modules\dlas\requirements.txt + +python -m pip install -U -r einops==0.6.0 +python -m pip install -U -r librosa==0.8.1 del *.sh diff --git a/setup-rocm.sh b/setup-rocm.sh index ff6c49a..0888bb6 100755 --- a/setup-rocm.sh +++ b/setup-rocm.sh @@ -10,9 +10,13 @@ python3 -m pip install --upgrade pip # just to be safe pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/rocm5.1.1 # 5.2 does not work for me desu # install requirements python3 -m pip install -r ./requirements.txt # install local requirements -python3 -m pip install --force-reinstall -r ./modules/tortoise-tts/requirements.txt # install TorToiSe requirements -python3 -m pip install --force-reinstall -e ./modules/tortoise-tts/ # install TorToiSe -python3 -m pip install --force-reinstall -r ./modules/dlas/requirements.txt # instal DLAS 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 + +python -m pip install -U -r einops==0.6.0 +python -m pip install -U -r librosa==0.8.1 + rm *.bat ./setup-rocm-bnb.sh diff --git a/update-force.bat b/update-force.bat index 07f1a74..4dd3462 100755 --- a/update-force.bat +++ b/update-force.bat @@ -7,9 +7,11 @@ call .\venv\Scripts\activate.bat python -m pip install --upgrade pip python -m pip install -U -r .\requirements.txt -python -m pip install --force-reinstall -U -r .\modules\tortoise-tts\requirements.txt -python -m pip install --force-reinstall -U -e .\modules\tortoise-tts -python -m pip install --force-reinstall -U -r .\modules\dlas\requirements.txt +python -m pip install -U -r .\modules\tortoise-tts\requirements.txt +python -m pip install -U -e .\modules\tortoise-tts +python -m pip install -U -r .\modules\dlas\requirements.txt +python -m pip install -U -r einops==0.6.0 +python -m pip install -U -r librosa==0.8.1 pause deactivate \ No newline at end of file diff --git a/update-force.sh b/update-force.sh index cf93e77..5def24c 100755 --- a/update-force.sh +++ b/update-force.sh @@ -9,9 +9,11 @@ python3 -m venv venv source ./venv/bin/activate python3 -m pip install --upgrade pip -python3 -m pip install -U -r ./requirements.txt -python3 -m pip install --force-reinstall -U -r ./modules/tortoise-tts/requirements.txt -python3 -m pip install --force-reinstall -U -e ./modules/tortoise-tts -python3 -m pip install --force-reinstall -U -r ./modules/dlas/requirements.txt +python3 -m pip install -r ./requirements.txt +python3 -m pip install -r ./modules/tortoise-tts/requirements.txt +python3 -m pip install -e ./modules/tortoise-tts +python3 -m pip install -r ./modules/dlas/requirements.txt +python3 -m pip install -U -r einops==0.6.0 +python3 -m pip install -U -r librosa==0.8.1 deactivate \ No newline at end of file