From fad0e353a475916baffe6eb6935416bd2135b38d Mon Sep 17 00:00:00 2001 From: n8bot <22458343+n8bot@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:11:29 -0700 Subject: [PATCH 1/3] Add conda installation instructions This replaces the pip-based method. --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b6b06cf..c4fc31f 100644 --- a/README.md +++ b/README.md @@ -54,20 +54,27 @@ The original colab no longer works by a combination of Google's tendency to forw If you want to use this on your own computer, you must have an NVIDIA GPU. -First, install pytorch using these instructions: [https://pytorch.org/get-started/locally/](https://pytorch.org/get-started/locally/). On Windows, I **highly** recommend using the Conda installation path. I have been told that if you do not do this, you will spend a lot of time chasing dependency problems. -Next, install TorToiSe and it's dependencies: +First, [install miniconda](https://docs.conda.io/en/latest/miniconda.html). + +Then run the following commands, using anaconda prompt as the terminal (or any other terminal configured to work with conda) ```shell +conda create --name tortoise python=3.9 numba inflect +conda activate tortoise +conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia git clone https://github.com/neonbjb/tortoise-tts.git cd tortoise-tts -python -m pip install -r ./requirements.txt python setup.py install ``` -If you are on windows, you will also need to install pysoundfile: `conda install -c conda-forge pysoundfile` +Optionally, pytorch can be installed in the base environment, so that other conda environments can use it too. To do this, simply send the `conda install pytorch...` line before activating the tortoise environment. + +> **Note:** When you want to use tortoise-tts, you will always have to ensure the `tortoise` conda environment is activated. + +If you are on windows, you may also need to install pysoundfile: `conda install -c conda-forge pysoundfile` ### do_tts.py From c934779d954e1c8978080d717fc948a6eb4814fb Mon Sep 17 00:00:00 2001 From: n8bot <22458343+n8bot@users.noreply.github.com> Date: Thu, 27 Apr 2023 13:09:56 -0700 Subject: [PATCH 2/3] Add additional information for installation Re-added the pytorch link for reference and describe each command in point form. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c4fc31f..3fef8e8 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,18 @@ If you want to use this on your own computer, you must have an NVIDIA GPU. On Windows, I **highly** recommend using the Conda installation path. I have been told that if you do not do this, you will spend a lot of time chasing dependency problems. -First, [install miniconda](https://docs.conda.io/en/latest/miniconda.html). +First, install miniconda: https://docs.conda.io/en/latest/miniconda.html Then run the following commands, using anaconda prompt as the terminal (or any other terminal configured to work with conda) +This will: +1. create conda environment with minimal dependencies specified +1. activate the environment +1. install pytorch with the command provided here: https://pytorch.org/get-started/locally/ +1. clone tortoise-tts +1. change the current directory to tortoise-tts +1. run tortoise python setup install script + ```shell conda create --name tortoise python=3.9 numba inflect conda activate tortoise From f348297c2909b398a42a347ffc0b9f07049da7b1 Mon Sep 17 00:00:00 2001 From: n8bot <22458343+n8bot@users.noreply.github.com> Date: Tue, 20 Jun 2023 23:14:59 -0700 Subject: [PATCH 3/3] Add command to downgrade transformers --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3fef8e8..9dd1d5e 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ This will: conda create --name tortoise python=3.9 numba inflect conda activate tortoise conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia +conda install transformers=4.29.2 git clone https://github.com/neonbjb/tortoise-tts.git cd tortoise-tts python setup.py install